Welcome Guest, Not a member yet? Register   Sign In
Message: Undefined variable: _forename but its there
#2

It's the way PHP parses the script

PHP Code:
$myvalue 'variablename';
$class->variablename 'aaa';
echo 
$class->$myvalue// outputs 'aaa' 

You have to remove $ when you use $this->_forename.
Reply


Messages In This Thread
RE: Message: Undefined variable: _forename but its there - by Pertti - 12-17-2018, 02:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB