If you were going to call that function you would use $this->testfunc();

You're on the right track. If you're going to call that function (or "method") from within the class, then you use the $this. Also, you can use $this to access member variables from within the class. Outside of the class, you would need to access those methods or variables using the name of the object.


Don't be afraid to contribute! It will even help you grow as a programmer to try to help others solve their coding problems.

--
Regards,
 Ben Ramsey
 http://benramsey.com
 http://www.phpcommunity.org/wiki/People/BenRamsey

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to