我有这个数组:
$array = array('abc123', 'ac123', 'tbc123', '1ac123');
我想比较每个字符串,找到最长的公共子字符串.在上面的例子中,结果将是c123.
c123
php arrays
arrays ×1
php ×1