helpers.php
Table of Contents
- getCaller() : any
- Helper function to get the caller of a function
- e() : string|null
- makeSlug() : mixed
- uecho() : mixed
- var_swap() : mixed
- shortenStr() : mixed
- emptyToNull() : mixed
- de_strtolower() : mixed
Functions
getCaller()
Helper function to get the caller of a function
getCaller([int $depth = 1 ]) : any
Parameters
- $depth : int = 1
-
Index of the callstack from back to front
Return values
any —The caller
e()
e(string|null $value) : string|null
Parameters
- $value : string|null
Return values
string|null —makeSlug()
makeSlug(mixed $str) : mixed
Parameters
- $str : mixed
Return values
mixed —uecho()
uecho(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —var_swap()
var_swap(mixed &$x, mixed &$y) : mixed
Parameters
- $x : mixed
- $y : mixed
Return values
mixed —shortenStr()
shortenStr(mixed $str[, mixed $maxlength = 10 ][, mixed $cutDescriptor = "..." ]) : mixed
Parameters
- $str : mixed
- $maxlength : mixed = 10
- $cutDescriptor : mixed = "..."
Return values
mixed —emptyToNull()
emptyToNull(mixed &$value) : mixed
Parameters
- $value : mixed
Return values
mixed —de_strtolower()
de_strtolower(mixed $string) : mixed
Parameters
- $string : mixed