www.gusucode.com > 74cms PHP骑士人才系统 v3.5.1源码程序 > code/upload/include/template_lite/plugins/function.in_array.php
<?php /** * template_lite in_array plugin * * Type: function * Name: in_array * Purpose: Checks to see if there is an item in the array that matches and returns the returnvalue if true. */ function tpl_function_in_array($params, &$tpl) { extract($params); if (is_array($array)) { if (in_array($match, $array)) { return $returnvalue; } } } ?>