<?php class base { var $a;
function hello(){ echo "hello"; } } class sub extends base { function hi(){ $this->a = "hi"; $this->hello(); } } $foo = new sub; $foo->hi(); echo $foo->a; ?> Justin Garrett "Electroteque" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi there sorry about the long subject , but i have not mastered yet how to > pass funtcions and variables between a base and subclass , i cant seem to > access variables properly between the bass class and subclass and functions > from the subclass in the base class ? > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php