• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.