Various functions, not specific and widely used. More...
Functions | |
multiarray_search ($field, $value, $array, $default_value=false) | |
multiarray_filter ($field, $value, $array) | |
startswith ($haystack, $needle) | |
endswith ($haystack, $needle) | |
list_templates () | |
get_generation_time ($start_generation_time) | |
Various functions, not specific and widely used.
endswith | ( | $haystack, | |
$needle | |||
) |
Check that $haystack ends with $needle.
get_generation_time | ( | $start_generation_time | ) |
Get the total generation time.
$start_generation_time | is a milliseconds timestamp |
list_templates | ( | ) |
List all available templates.
multiarray_filter | ( | $field, | |
$value, | |||
$array | |||
) |
Filters a 2D array returning all the entries where $field is not equal to $value.
multiarray_search | ( | $field, | |
$value, | |||
$array, | |||
$default_value = false |
|||
) |
Search for the first item with value $value for field $field in a 2D array.
startswith | ( | $haystack, | |
$needle | |||
) |
Check that $haystack starts with $needle.