📄 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;
}
}
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -