在下面的代码中,如何检查是否$variable
等于“$one”。
<?php
$one = array (1,2,3);
$two = array (4,5,6);
$variables = array ($one, $two);
foreach ($variables as $variable){
//check if the $variable is equal to "$one"
//do stuff that is specific for array $one
}
?>