0
私はPHPで二つの配列を比較し、両方の配列が同じであれば入れアウトを印刷する必要がなく、どのような方法
すなわち
$array1=array('a','p','p','l','e');
$array2=array('p','a','e','l');
--- This must return as success because all of the letters in array1 is there in array2
$array1=array('a','p','p','l','e','s');
$array2=array('p','a','e','l');
-- This must return false
$array1=array('a','p','p','l','e','s');
$array1=array('a','p','p','l','e','s');
-- This must return true
内の要素を注文することができます0
どのように検索を使用してはどうですか? http://stackoverflow.com/questions/901815/php-compare-array –