 |
PHP: Booleans - Manual - PHP: Hypertext Preprocessor
Converting to boolean To explicitly convert a value to boolean, use the (bool) or (boolean) casts. However, in most cases the cast is unnecessary, since a value will be automatically converted if an operator, function or control structure requires a boole
php.net |
 |