RE: [PHP] Problem with extending classes.
| From: | Kim Madsen | Date: | Fri, 13 May 2005 11:26:32 +0000 |
| Subject: | RE: [PHP] Problem with extending classes. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-215131@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Shaw, Chris - Accenture [mailto:cshaw@revenue.ie]
> Sent: Friday, May 13, 2005 12:10 PM
> To: php-general@lists.php.net
> Subject: [PHP] Problem with extending classes.
> Have I missed something or is there bugs with extending classes in
php5?
> Does this happen in php4.3?
$this->$name = $this->ksplit($name);
$this->$contactcontact = $this->ksplit($contact);
$this->$address = $this->ksplit($address);
Regardless of inheriting or not it should be:
$this->name = $this->ksplit($name);
$this->contactcontact = $this->ksplit($contact);
$this->address = $this->ksplit($address);
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper