重複の可能性:
PHP 比較配列
PHPで2つの配列を比較し、両方の配列が同じであるが、要素を任意の方法で並べ替えることができる場合は、出力を出力する必要があります
すなわち
$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
助けてください