Re: class method() definition ??? parse error, expecting`')'' ...

From: Date: Thu, 05 Oct 2000 14:45:21 +0000
Subject: Re: class method() definition ??? parse error, expecting`')'' ...
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-18731@lists.php.net to get a copy of this message
>PHP doesn't like $this-> in function parameters. I know it is in the manual >but it always throws an error for me. So instead of: >function set_Profile_shipping($this->UID) >do this: >function set_Profile_shipping($UID) { >$this->UID = $UID; >... > >Charles > Charles-- that looks like a good shot! Is this a bug? I see the '->' in the method param OOP examples in the Wrox 'Professional PHP Programming' book. many thanks! PF -- AzByCx DwEvFu GtHsIr JqKpLo MnNmOl PkQjRi ShTgUf VeWdXc YbZa&@ Peter Fraterdeus http://www.midsummernightstamps.com Magical Images from the Moon's Garden! Type on the Edge of History; In Search of the Wild Photon, &c. http://www.dezinecafe.com/fraterdeus BookSense http://www.booksense.com Independent local booksellers on the web.

« previous php.general (#18731) next »