note 54359 deleted from function.in-array by felipe
| From: | felipe@php.net | Date: | Sun, 30 Dec 2007 18:57:24 +0000 |
| Subject: | note 54359 deleted from function.in-array by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134482@lists.php.net to get a copy of this message | ||
Note Submitter: rob at bronco dot co dot uk
----
For the "rediculous behaviour", a populated array is bool(true). This is documented.
<?php
var_dump((bool)Array(false)); // bool(true)
var_dump((bool)Array()); // bool(false)
?>