Zum Ende der Metadaten springen
Zum Anfang der Metadaten

$bool = is_enabled($text);

 Used for config parameters. Returns True if the $text contains a word that fuzzy could mean True.If the passed string contains one of these words:

true, yes, on, enabled, enable, 1, check, checked, select, selected

The function will return True, otherwise False.

The keyword search is case insensitive.

The intention of this function is to query a config parameter that may be one of the keywords. To reduce your searching overhead, use is_enabled.

 

  • Keine Stichwörter