Skip to content

PHP Pretty Dump Function

PHP pretty dump function

After using this, you will never go back to var_dump or print_r anymore. That alone says a thousand words.

public static function pretty_dump($array)
{
    echo '<pre>' . var_export($array, true) . '</pre>';
}

 

Enjoyed the content ? Share it with your friends !
Published inDevelopmentProgramming

Be First to Comment

Leave a Reply

Your email address will not be published.