/SpeedPHP/Drivers/TemplateLite/plugins/function.in_array.php
PHP | 21 lines | 13 code | 1 blank | 7 comment | 2 complexity | b11188d20acff8fdb6825002d909d915 MD5 | raw file
- <?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;
- }
- }
- }
- ?>