Add php files
This commit is contained in:
11
include/Smarty/plugins/function.getrealindex.php
Normal file
11
include/Smarty/plugins/function.getrealindex.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
function smarty_function_getrealindex($params, &$smarty)
|
||||
{
|
||||
$a_keys = array_keys($params['array']);
|
||||
$index_of_apple = array_search($params['key'], $a_keys);
|
||||
|
||||
return $index_of_apple;
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user