note 126187 added to function.var-dump
| From: | jrmie at main dot php dot net | Date: | Wed, 23 Jun 2021 08:12:56 +0000 |
| Subject: | note 126187 added to function.var-dump | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-216539@lists.php.net to get a copy of this message | ||
As a PHP developer I'm using var_dump() every day; so useful. But can be tricky (or illegible)
when you're having huge arrays, multidimensional arrays and objects. That's why I would
recommend using Kint.
Kint can be quickly and temporary added to your project so can comfortably debug, in a var_dump way,
your $variables
For instance, you could download and save kint.phar on the /var/www/html/ of your localhost and then
use it like this :
<?php
include $_SERVER["DOCUMENT_ROOT"] . "/kint.phar";
d($theVariableYouNeedToDebugOrBrowse);
?>
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.85.242 (proxied: 90.113.109.205)
----
Manual Page -- https://php.net/manual/en/function.var-dump.php
Edit -- https://main.php.net/note/edit/126187
Del: integrated -- https://main.php.net/note/delete/126187/integrated
Del: useless -- https://main.php.net/note/delete/126187/useless
Del: bad code -- https://main.php.net/note/delete/126187/bad+code
Del: spam -- https://main.php.net/note/delete/126187/spam
Del: non-english -- https://main.php.net/note/delete/126187/non-english
Del: in docs -- https://main.php.net/note/delete/126187/in+docs
Del: other reasons-- https://main.php.net/note/delete/126187
Reject -- https://main.php.net/note/reject/126187
Search -- https://main.php.net/manage/user-notes.php