|
boolvalGet the boolean value of a variable Description
boolean boolval
( mixed
$var
)
Returns the boolean value of Parameters
Return Values
The boolean value of Examples
Example #1 boolval examples
<?php The above example will output: 0: false 42: true 0.0: false 4.2: true "": false "string": true "0": false "1": true [1, 2]: true []: false stdClass: true |