var_dump

void var_dump(mixed variable, [mixed another_variable], [mixed...]) 

Displays detailed information about one or more variables.

Returns:

Nothing

Description:

var_dump() displays information about variables in a simple, readable format. This function is very useful when debugging—providing a simple and easy way to display the current contents of one or more variables.

For simple scalar variables (such as booleans, integers, strings, and doubles), the type of the variable is printed, followed by an opening bracket, the value contained in the variable, and a closing bracket.

Resource pointers have their type (resource), ID number (such as 1, 2, or 45), and type of resource (such as dir or file) displayed. The ID number assigned to a resource ...

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.