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

Popular posts from this blog

apache - setting document root in antoher partition on ubuntu -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -

Process 'command 'F:\android-sdk\build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 1 -