first time trying to deal with this call_user_func_array, but something isn't working, since I get no response from the function, what can I be missing?
function _a_($id, $text) {
if($id == 'a') {
_b_();
if(substr($text, 0, 8) == "{source}") {
$campos = substr_replace($text, '', 0, 8);
$campos = substr($campos, 0, -9);
$funcao = explode(";", $campos);
print_r($funcao);
call_user_func_array($funcao[0], $funcao[1]);
}
} else {
echo $text."<br>";
}
}
function _b_() {
echo "b was fired<br>";
}
function _c_($some_text) {
echo "received a call<br>";
echo "inside function c: ".$some_text."<br>";
}
_a_("a", "{source}_c_;ola{/source}");
print_r($funcao);?