For example, with this code:
Code: Select all
class Client
{
var $clientId = -1;
function Client($aClientId=-1)
{
$this->$clientId = $aClientId;
}
...What am I doing wrong? The class seems to work fine in spite of this.Notice: Undefined variable: clientId in /var/www/ozfl/common/classes/Client.php on line 12