App下载

demo_func_in_array 在线工具

demo_func_in_array 在线工具

<?php
$people = array("Peter", "Joe", "Glenn", "Cleveland");

if (in_array("Glenn", $people))
&nbsp;&nbsp;  {
&nbsp;&nbsp;  echo "Match found";
&nbsp;&nbsp;  }
else
&nbsp;&nbsp;  {
&nbsp;&nbsp;  echo "Match not found";
&nbsp;&nbsp;  }
?>
运行结果