Note Submitter: hperrin at gmail dot com
----
Regarding my previous post:
For checking whether a value is not an array, it seems to be better to use !== in some cases. I'm checking an array member, and it works when using !== but not ! ... ===.
So use:
<?php
if ((array) $test[0] !== $test[0])
echo 'it\'s not an array';
?>
Instead of:
<?php
if (!(array) $test[0] === $test[0])
echo 'it\'s not an array';
?>
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.