Skip to content

hannasdev/Debug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Debug

Debug is a static class the simplifies routine debugging procedures, such as rendering pretty looking (and more readable) arrays and variables in HTML.

Examples

printr()

PHP:

<?php
$data = ['username' => 'hanna', 'email' => 'info@hannasoderstrom.com'];
Debug::printr($data);

HTML:

array(
    'username' => 'hanna',
    'email' => 'info@hannasoderstrom.com'
    )

vardump()

PHP:

<?php
$data = "Hello world!";
Debug::vardump($data);

HTML:

(string)"Hello world!"(12)

About

PHP Debug helper-class

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages