serglt
Анус, ой, Ахтунг
PHP - 5.2.8
	
	
	
		
								
		PHP:
	
	class MyObj {
	protected $myVar = '123';
	function __construct () {
		echo "Construct\n";
		$this -> myVar = '321';
	}
	
	function __set ($k, $v) {
		echo "Setting field (myVar = {$this->myVar}): ";
		print_r (func_get_args ());
		$this -> $k = $v;
	}
}
$sql = new mysqli ('localhost', 'user', 'password', 'test');
print_r ($sql -> query ("SELECT * FROM Table") -> fetch_object ('MyObj')); 
	            