Skip to content

Instantly share code, notes, and snippets.

View brainplot's full-sized avatar
🏠
Working from home

Gianluca Recchia brainplot

🏠
Working from home
View GitHub Profile
@brainplot
brainplot / dump_walk.php
Created November 25, 2019 06:51 — forked from jgusta/dump_walk.php
A function that returns a big string version of var_dump or print_r except it descends into private props and shows things in as compact manner as possible.
<?php
if (!function_exists('dump_walk')) {
/**
* This function is like print_r($node, true) but cleaner
* @param $node
* @param string $indent_string
* @param int $depth
* @param null $parentType
* @return string
*/