判断php组数中是否存在的实例
在数组中搜索值 "Glenn" ,并输出一些文本:
<?php $people = array("Peter", "Joe", "Glenn", "Cleveland"); if (in_array("Glenn", $people)){ echo "Match found"; } else { echo "Match not found"; } ?>
判断php组数中是否存在的实例
在数组中搜索值 "Glenn" ,并输出一些文本:
<?php $people = array("Peter", "Joe", "Glenn", "Cleveland"); if (in_array("Glenn", $people)){ echo "Match found"; } else { echo "Match not found"; } ?>
小黑 开发技术2023-12-01
网络转载 PHP2023-03-06
网络转载 LNMP2023-02-03