示例代码:
<?php /** * php in_array简单示例 * site www.jb200.com */ $people = array("Peter", "Joe", "Glenn", "Cleveland"); if (in_array("Glenn",$people)) { echo "It's Here."; } else { echo "where you going?"; } ?>
Output: It's Here.
CopyRight © 2010-2021 脚本学堂 Jb200.com , All Rights Reserved.