note 59391 deleted from language.operators.type by colder
| From: | colder@php.net | Date: | Sat, 24 Feb 2007 10:03:00 +0000 |
| Subject: | note 59391 deleted from language.operators.type by colder | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-123811@lists.php.net to get a copy of this message | ||
Note Submitter: Colin
----
To MooGoo:
This will fail, as you pointed out:
<?
if ($moo instanceof "Moo") echo "Goo\n";
?>
but this will not
<?
if ($moo instanceof Moo) echo "Goo\n";
?>
This later example (no quotes around Moo) is shown twice in the example code.