John Clements wrote:
Hello,
Thanks for providing this possibility to ask for further documentation.
It nicely absorbs my annoyance at something not working for me and
safely channels the energy constructively. Hurray!
Anyhow, this indispensable operator === (three equal signs) is not
documented under the entry for type bool (or anywhere else?). It is only
mentioned in a user-added comment but never actually explained.
The fact that PHP can't tell the difference between not finding
something and finding it at byte 0 of a string or element 0 of an array
has been a real weakness since the beginning. Evidently it can't be
dealt with easily, e.g. as Perl does by returning -1 when not found. I
won't ask why. But if it can't simply be fixed, and if we have to use
this === operator, please document it for us. I have found e.g. that
there is something funny, that I have to say !== false rather than ===
true, or somethong like that. But I can never get it right the first
time it seems. Pls have pity on folks like me! :)
many thanks. keep up the good work, John
Please, report bugs at http://bugs.php.net.
Thanks
Friedhelm