note 72363 added to function.is-a

From: Date: Tue, 16 Jan 2007 09:44:48 +0000
Subject: note 72363 added to function.is-a
Groups: php.notes 
Request: Send a blank email to php-notes+get-121784@lists.php.net to get a copy of this message
At least in PHP 5.1.6 this works as well with Interfaces. <?php interface test { public function A(); } class TestImplementor implements test { public function A () { print "A"; } } $testImpl = new TestImplementor(); var_dump(is_a($testImpl,'test')); ?> will return true ---- Server IP: 217.13.201.10 Probable Submitter: 85.183.76.2 ---- Manual Page -- http://www.php.net/manual/en/function.is-a.php Edit -- https://master.php.net/note/edit/72363 Del: integrated -- https://master.php.net/note/delete/72363/integrated Del: useless -- https://master.php.net/note/delete/72363/useless Del: bad code -- https://master.php.net/note/delete/72363/bad+code Del: spam -- https://master.php.net/note/delete/72363/spam Del: non-english -- https://master.php.net/note/delete/72363/non-english Del: in docs -- https://master.php.net/note/delete/72363/in+docs Del: other reasons-- https://master.php.net/note/delete/72363 Reject -- https://master.php.net/note/reject/72363 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#121784) next »