a boolean flag that indicates whether the dump should only be accessible to logged in administrators (defaults to false)
3
$localhostOnly = false
bool
No
a boolean flag that indicates whether the dump should only be accessible when running on the localhost domain (defaults to false).
Returns
Data Type
Description of Returned Data
nothing
Example
dnd($db->errorString);
Further Documentation:
Simply adds pre tags around each item in the var_dump for better formatting and clearer results. The best use for this is during debugging or right before a redirect when you want PHP to stop executing.
This is a debugging function in UserSpice that dumps the provided variable using the dump function (which pretty prints the variable for easy viewing) and then terminates the script with die().