check()
check(string $item, array $whitelist = null) : boolean
Check if item exists in the whitelist.
Parameters
string |
$item |
string to check. |
array |
$whitelist |
optional with all valid options, default is null. |
Returns
boolean
— true if item is in whitelist, else false.