> > function setData( $age, $name ) > > { > > $age = $age; > > $name = $name; > > } > Is useless ;-) I think you wanted this: > function setData( $age, $name ) > { > $this->age = $age; > $this->name = $name; > }
Good catch! Thank you very much. :) Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php