Skip to content

Commit

Permalink
Better debugger.
Browse files Browse the repository at this point in the history
  • Loading branch information
nerun committed Dec 14, 2023
1 parent 0798b81 commit b931152
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions debug.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
<?php
/**
* Daniel Dias Rodrigues (aka Nerun) <danieldiasr@gmail.com>
* add to script:
* require_once('debug.php');
*/
function printr($arr) {
echo "<pre>";
function printr($arr, $name=null) {
echo '<pre>';
if (!empty($name)){
echo $name.' =<br />';
}
print_r($arr);
echo "</pre><br><br>";
echo '</pre><br />';
}
?>

0 comments on commit b931152

Please sign in to comment.