note 58748 deleted from function.property-exists by googleguy

From: Date: Tue, 22 Oct 2013 14:54:39 +0000
Subject: note 58748 deleted from function.property-exists by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-197225@lists.php.net to get a copy of this message
Note Submitter: timshel ---- I haven't tested this with the exact function semantics of 5.1, but this code should implement this function in php < 5.1: <?php if (!function_exists('property_exists')) { function property_exists($class, $property) { if (is_object($class)) $class = get_class($class); return array_key_exists($property, get_class_vars($class)); } } ?>

« previous php.notes (#197225) next »