dump (function)

Return to Knowledgebase

Purpose

Provides a formatted var_dump of a variable

Location

users/helpers/helpers.php

See Also:

dnd (function)

Parameters

# Parameter Data Type Required Description
1 $var Yes undocumented
2 $adminOnly = false Yes undocumented
3 $localhostOnly = false Yes undocumented

Example

dump($db->errorString);

Further Documentation:

Simply adds pre tags around each item in the var_dump for better formatting and clearer results.