Method

dump—  Prints information in a human-readable format about a variable.

Description

This method displays information about a variable in a way that is easier to read by humans. This is used mainly to debug variable values and print objects arrays or strings.
Minimum number of arguments for this method is one.

Structure of the method:

dump(variable)

Parameters

variable— the variable we want to get information on that can be an object or array or a string

Examples

In the example below, we get information about a variable.

To stay updated with the latest features, news and how-to articles and videos, please join our group on Facebook, Flexie CRM Academy.