I have following code to backtrace the error ....but its
$traces = debug_backtrace(); foreach ($traces as $k => $v) { if ($v[\'function\'] == \'include\
You are not creating array properly
$args .= $v['args'][$key];
You are creating a string.
$args = array(); if(isset($v['args']) && is_array($v['args'])) { $size = count($v['args']); foreach ($v[' args'] as $key => $arg) { array_push($args,$v['args'][$key]); // some of your code }