#41261 [Opn->Bgs]: instanceof syntax signature (other operators too)
| From: | vrana@php.net | Date: | Fri, 17 Aug 2007 09:07:53 +0000 |
| Subject: | #41261 [Opn->Bgs]: instanceof syntax signature (other operators too) | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969377542@lists.php.net to get a copy of this message | ||
ID: 41261
Updated by: vrana@php.net
Reported By: rares dot marian at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:
"instanceof is used to determine whether a PHP variable is an
instantiated object of a certain class". So $a must be variable.
Previous Comments:
------------------------------------------------------------------------
[2007-05-02 15:46:59] rares dot marian at gmail dot com
Description:
------------
The instanceof operator documentation does not simply state whether $a
in the phrase "$a instanceof $b" can be a string. It is stated that $b
can be string however.
In fact none of the operators have any syntax documentation. I'd be
glad to contribute by documenting the operators.
It would be something along the lines of: object instanceof mixed.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41261&edit=1