class method() definition ??? parse error, expecting `')'' ...
| From: | Peter Fraterdeus | Date: | Thu, 05 Oct 2000 02:37:31 +0000 |
| Subject: | class method() definition ??? parse error, expecting `')'' ... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-18694@lists.php.net to get a copy of this message | ||
Hello
Sorry if this is absolutely dead obvious, but I'm completely at a loss...
I'm trying to create a class method, called (for example)
function set_Profile( $this->$UID ) //
{ $this->customer_ID=$this->form['customer_ID'] $this->name_first=$this->form['name_first'];
$this->name_last=$this->form['name_last'];
...
}
But whenever I test the script, I get : Parse error, Expecting `')'' in line...:
Strange way to quote a paren, no?
If I remove the parameter, ie
function set_Profile( ) // $this->$UID
...
}
the script parses OK, but obviously, this is not acceptable!
Any pointers will be gratefully accepted...
many thanks
please cc to: peterf@semiotx.com
--
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.