Re: class method() definition ??? parse error, expecting `')'' ...
| From: | Charles Killian | Date: | Thu, 05 Oct 2000 02:48:29 +0000 |
| Subject: | Re: class method() definition ??? parse error, expecting `')'' ... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-18696@lists.php.net to get a copy of this message | ||
Add a ; after the first ]
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'];
...
}
charles
----- Original Message -----
Sent: Wednesday, October 04, 2000 7:37 PM
Subject: [PHP] class method() definition ??? parse error, expecting `')''
...
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.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net