var-export

Which php variable debugging function do you use? var_dump, print_r, var_export, other?

I personally use var_dump, but lots of people like print_r. What does everyone use? Pros and Cons? Does someone have a special home brew function of their own? ...

Why does the name or value of the backButton HTML button not appear in $_POST?

Trying to detect when a user clicks "Cancel" but the $_POST on using var_export($_POST) outputs:- array ( 'descr' => '', 'formSubmitted' => '1', 'backButton_x' => '36', 'backButton_y' => '15', ) Notice: Undefined index: backButton in /home/mholt/development/BusinessPortico/class/requestHandler.class.php on line 81 Here is the...

Alternatives to var_export

var_export function causes an exception while argument has circular references. Are there any alternatives (except serialize) which handle it correctly? ...