Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199908

Re: [PHP3] newbie: class syntax/bug From: Aaron Leon Kaplan (jjl <email protected>)
Date: 08/04/99

> //Set time stamp
> //
> function set($val = "") {
> print "format: -->" . $this->$dateFormatImage . "<--<br>\n";

try:
         print "format: -->" . $this->dateFormatImage . "<--<br>\n";

AFAIK this should be the right syntax.... No idea what caused that problem
of yours. But anyway, thats something that I noticed...

no extra $ needed when referencing a var local to a class.

Aaron.

-- 
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin <email protected>