// include function
include 'print_d.php';
// echo simple string
echo print_d('Simple string');
// echo variable
$int = 1;
echo print_d($int);
// echo classes
class Test
{
var $a = 'a',
$b = 'b';
function method1($a)
{
}
}
$obj = new Test;
echo print_d($obj); // prints object variables
echo print_d($obj, true); // prints object variables and methods with attribute descriptions
-
Notifications
You must be signed in to change notification settings - Fork 1
ivantcholakov/print_d
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Enhanced print_r function for PHP
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published