print_p()

Prints human-readable information about a variable.


print_p( mixed $data [, bool $modal, bool $print ] ) : string

Parameters

$data (mixed) (Required) The expression to be printed.

$modal (bool) (Optional) Dump info in the modal. Default value: false

$print (bool) (Optional) Dump info in <pre> tag. Default value: true

Return Values

(string) The value of the variable.

Examples

$data = [
    'key'  => 67485,
    'key2' => 'value',
    'key3' => 4655
];

print_p($data);
/*
Array
(
    [key] => 67485
    [key2] => value
    [key3] => 4655
)
*/