在數組中搜索值"Glenn" ,並輸出一些文本:. <?php $people = array("Peter", "Joe", "Glenn", "Cleveland"); if (in_array("Glenn", $people)) { echo "Match found"; }
確定! 回上一頁