php

Error handling in php

Submitted by admin on Sun, 11/11/2018 - 14:25

# for checking backtrace of a function call

$e = new \Exception;
var_dump($e->getTraceAsString());

 

# for printing an array or object variable 

print_r($var);

 

# for showing a specific level of an array or object