as some of you know, i'm working on a new bbs. last night i ported the functions i have into a class .. i'm really enjoying object oriented programming with php.
here's an example:
PHP Code:
<?
class user
{
set_name($username)
{
$this->username=$username;
}
}
$me = new user();
$you = new user();
$me->set_name("mike");
$you->set_name("joe schmoe");
echo "my name is " . $me->username;
echo "your name is " . $you->username;
?>
cool stuff!