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

From: Date: Thu, 05 Oct 2000 06:38:39 +0000
Subject: Re: class method() definition ??? parse error, expecting`')'' ...
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-18704@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 ----- Original Message ----- Sent: Wednesday, October 04, 2000 8:52 PM Subject: Re: [PHP] class method() definition ??? parse error, expecting`')'' ... At 7:48 PM -0700 10/4/00, Charles Killian wrote: >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']; >... >} Hi, Charles-- Thanks, but this is actually just missing in the fragment I copied... the code, in fact, looks like this: -------- function set_Profile_shipping($this->UID) // { $this->customer_ID=$this->form['customer_ID']; $this->name_first=$this->form['name_first']; $this->name_last=$this->form['name_last']; $this->company=$this->form['company']; ... ------- regards 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 (#18704) next »