I am a newbie of PHP. I study it from php.net
, but I found a problem today.
class foo {
var $bar = \'I am bar.\';
}
$foo = new foo();
$bar
Just assign array to a variable and use that variable on function call. That will work... I fixed this issue in that way.
Because when coming to PHP 7, that will pass whole array when we directly used it on function call.
EX:
$fun['myfun'](); // Will not work on PHP7.
$fun_name = $fun['myfun'];
$fun_name(); // Will work on PHP7.