note 113125 added to function.property-exists

From: Date: Tue, 03 Sep 2013 01:23:05 +0000
Subject: note 113125 added to function.property-exists
Groups: php.notes 
Request: Send a blank email to php-notes+get-196145@lists.php.net to get a copy of this message
If you are in a namespaced file, and you want to pass the class name as a string, you will have to include the full namespace for the class name - even from inside the same namespace: <? namespace MyNS; class A { public $foo; } property_exists("A", "foo"); // false property_exists("\\MyNS\\A", "foo"); // true ?> ---- Server IP: 69.147.83.199 Probable Submitter: 213.47.132.228 ---- Manual Page -- http://php.net/manual/en/function.property-exists.php Edit -- https://master.php.net/note/edit/113125 Del: integrated -- https://master.php.net/note/delete/113125/integrated Del: useless -- https://master.php.net/note/delete/113125/useless Del: bad code -- https://master.php.net/note/delete/113125/bad+code Del: spam -- https://master.php.net/note/delete/113125/spam Del: non-english -- https://master.php.net/note/delete/113125/non-english Del: in docs -- https://master.php.net/note/delete/113125/in+docs Del: other reasons-- https://master.php.net/note/delete/113125 Reject -- https://master.php.net/note/reject/113125 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#196145) next »