Is there a way to get the name of a filed
from a variable pointing to some object?

Just to make myself understood:

class obj {
   var $field;
   function obj( $value ) {
     $this->field = $value;
   }
}

$o = new obj( "field value" );

How can i know, if possible,  that the instance of
obj pointed to by $o has a field named "field"?

This would be useful to write an object to a database
without knowing its structure 'a-priori'.

Thanks

fbv


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to