Extension Help

From: Date: Tue, 15 Feb 2005 03:55:01 +0000
Subject: Extension Help
Groups: php.general 
Request: Send a blank email to php-general+get-208702@lists.php.net to get a copy of this message
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!

« previous php.general (#208702) next »