Skip to content

Filter Functions

Jason Dent edited this page Aug 30, 2015 · 7 revisions

Filter Functions

Function Return
Function
Signature
Description of the generated function
fnClean() function($v) Alias for fnIsNotEmpty()
fnImplements($interface) function($v) Returns true if $v implements $interface
fnInstanceOf($className) function($v) Returns true if $v is an instance of $className
fnIsEmpty() function($v) Returns true if $v is empty, otherwise false.
fnIsEqual($value) function($v) Returns true if $value is equal to $v
fnIsEqualEqual($value) function($v) Returns true if $value is exactly equal to $v, same as using a === comparison.
fnIsInArray(array $array) function($v) Returns true if $v is in $array
fnIsInMap(array $map) function($v) Returns true if $map has a key that matches $v.
fnIsNotEmpty() function($v) Returns true if $v is NOT empty, otherwise false.
fnIsNotEqual($value) function($v) Returns true if $value is not equal to $v
fnIsNotEqualEqual($value) function($v) Returns true if $value is not equal to $v, same as using a !== comparison.
fnIsNotInArray() function($v) Returns true if $v is NOT in the array
fnIsNotInMap($map) function($v) Returns false if $map has a key that matches $v.
fnIsNumeric() function($v) Returns true if $v is numeric
fnIsObject() function($v) Returns true if $v is an object
fnIsSet() function($v) Returns true if $v is set, otherwise false.
fnNot() function($v) Returns true if $v is falsy, otherwise false. Same as using ! $v
Clone this wiki locally