Function java_is_false
Checks whether a value is NULL, 0, "" or false.
Note that if you want to check if a value is boolean false, use the following test:
java_values($value)===false
Example:
java_is_false(new java.lang.String("12")) => false
Example:
java_is_false(new java.lang.String("")) => true
Example:
java_is_false(1==1) => false
Example:
java_is_false(java("java.lang.System")->getProperty("foo"))
mixed |
$value |
Java object or a PHP value |
true
|
if the PHP or Java value is false. |