Top "Var-dump" questions

var_dump is a PHP function that dumps information about a variable.

How do I properly use print_r or var_dump?

I use the following snippet quite often when I am debugging: echo "<pre>" . var_dump($var) . "</pre&…

php printing var-dump
var_dump on a json_decode variable PHP

quick question, im doing a var_dump on a json_decode variable in php like this: var_dump(json_decode($…

php json var-dump
var_dump or print_r and html encoding

<?php $x = array("<b>","<i>","b","i","<h1>hello</h1>"); print_…

php xss html-entities var-dump
Human Readable JSON: aka Add spaces and breaks to json dump

Is there a "simple" script somewhere that will take a json data and format it to make it more readable? …

php json var-dump
Pretty dump variable/object in Symfony 2.*?

When developing stuff I need to output the state of some instance in order to inspect it. While using CakePHP …

symfony var-dump
Sending "var_dump" to FireBug console

As you know var_dump() in addition to value show its data type and length. Is there any way to …

php firebug var-dump firephp
PHP refuses to output data from var_dump, print, etc

I'm running a WAMP server at the moment, and have been spending the past 30 minutes trying to figure out how …

php apache debugging wampserver var-dump
how do i get only values from var dump array?

Is it possible to escape array(1) { [0]=> string(12)} from var_dump($variable) because I want to show only values from …

php arrays var-dump
Does xdebug beautify var_dump?

According to this article, http://devzone.zend.com/article/2803, var_dump is supposed to beautify the outputs. I have installed …

xdebug var-dump
Alternative var_dump for PHP that allows limiting depth of nested arrays

I try to use var_dump on command line with phpsh in order to get debugging information about some variable. …

php debugging var-dump