note 74755 deleted from ref.overload by nlopess

From: Date: Tue, 01 May 2007 13:49:33 +0000
Subject: note 74755 deleted from ref.overload by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-126071@lists.php.net to get a copy of this message
Note Submitter: Davide ---- Hi, I have this class: Class myQuery { function __construct([myParameters]) { //Initializing $this->mysqli = new mysqli([myParameters]); [...] function __GET($property) { if(property_exists($this->mysqli,$property)){ return $this->mysqli->$property; }else{ echo "PROPERTY DOES NOT EXIST"; } } private $mysqli; } $var_class = new QueryWrapper([myParameters]); echo "LAST ID:".$var_class->insert_id; The "property_exists" function in the __GET method does not work in this case.

« previous php.notes (#126071) next »