Dump your PHP Variables with var_dump()
To find out the full details of any given variable in PHP, use the handy var_dump() function as follows: This will show you the PHP variable type, its value, and if it is an object or array. The structure and all information will be output recursively. The only slight disadvantage to using var_dump() is that…