回帖:$strings = ['apple', 'banana', 'orange', 'grape'];
$toCheck = ['apple', 'banana'];
// 检查 $toCheck 中的所有字符串是否都在 $strings 中
$inArray = array_intersect($strings, $toCheck);
if (count($inArray) === count($toCheck)) {
echo "所有字符串都存在。";
} else {
echo "不是所有字符串都存在。";
}

