note 113871 added to language.operators.type

From: Date: Wed, 11 Dec 2013 17:52:07 +0000
Subject: note 113871 added to language.operators.type
Groups: php.notes 
Request: Send a blank email to php-notes+get-197908@lists.php.net to get a copy of this message
You are also able to compare 2 objects using instanceOf. In that case, instanceOf will compare the types of both objects. That is sometimes very useful: <?php class A { } class B { } $a = new A; $b = new B; $a2 = new A; echo $a instanceOf $a; // true echo $a instanceOf $b; // false echo $a instanceOf $a2; // true ?> ---- Server IP: 72.52.91.14 Probable Submitter: 72.52.91.14 ---- Manual Page -- http://php.net/manual/en/language.operators.type.php Edit -- https://master.php.net/note/edit/113871 Del: integrated -- https://master.php.net/note/delete/113871/integrated Del: useless -- https://master.php.net/note/delete/113871/useless Del: bad code -- https://master.php.net/note/delete/113871/bad+code Del: spam -- https://master.php.net/note/delete/113871/spam Del: non-english -- https://master.php.net/note/delete/113871/non-english Del: in docs -- https://master.php.net/note/delete/113871/in+docs Del: other reasons-- https://master.php.net/note/delete/113871 Reject -- https://master.php.net/note/reject/113871 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#197908) next »