php - Function name must be a string fatal error -
i have fatal error, i've been staring @ code hours.. think has nothing name of function action_send
, must silly 'missing parenthesis' or something...
can me please ?
if (...) {} else if (!historic_exist($id)) { action_send($req, '0', (strpos($req['tag'], 'admd') !== false) ? $req['id_act'] : ''); //the error in line : if ((strpos($req['wf'],'install') !== false) && $req('id_equ') !== '') action_send($req, '', '0'); }
in php can call functions dynamically using variables. in code using $req('id_equ')
php considers function call.
but $req
array php parser throws fatal error:
fatal error: function name must string in \..\file.php on line ..
you must change $req('id_equ')
$req['id_equ']
.
Comments
Post a Comment