I'm trying to write a PHPv4 extension and I am needing some assistance. I wish to have a function exported from my extension return a value which consists of a set of properties and functions much like so: // Gets user record from database store. $MyUser = GetUser(); echo "Your name is: ".$MyUser->name; // Update name field to something else $MyUser->name = "We've changed your name"; // Invoke an update function to save the data to // database. $MyUser->update(); Could someone please illustrate how my extension should create/register this $MyUser return_value and how I would go about coding the update() function on that object? Thanks in advance! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php