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'.



PHP General Mailing List (
To unsubscribe, visit:

Reply via email to