函数参数:true?
本帖最后由 u012362664 于 2013-10-09 20:35:48 编辑
<?
$x1=array(1=>111,2=>12,3=>3333);
$y1=in_array(12,$x1,true);
echo $y1;
echo "\r\n";
$x2=array(1=>111,2=>12,3=>3333);
$y2=in_array('12',$x2,true);
echo $y2;
echo "\r\n";
$x3=array(1=>111,2=>12,3=>3333);
$y3=in_array("12",$x3,true);
echo $y3;
echo "\r\n";
?>