Reply to Extension Help

Your name:

Reply:


Posted by Chris Cranford on 10/04/01 11:08

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!

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация