Last active
July 18, 2018 15:42
-
-
Save nateplusplus/0f5f9d60998eec9f0c6ceeb014e63a82 to your computer and use it in GitHub Desktop.
Revisions
-
nateplusplus revised this gist
Jul 18, 2018 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ /** * Shortcut for print_r or var_dump while debugging * @param $value (optional) - value, of any type, to print (providing nothing will result in weird face) * @param bool $vardump (optional) - specify if you prefer var_dump instead of print_r **/ function peep($value = " ˁ(⦿ᴥ⦿)ˀ ", $vardump = false) { -
nateplusplus revised this gist
Jul 18, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ /** * Shortcut for print_r or var_dump while debugging * @param $value (optional) - value to print (providing nothing will result in weird face) * @param $vardump (optional) - specify if you prefer var_dump instead of print_r **/ function peep($value = " ˁ(⦿ᴥ⦿)ˀ ", $vardump = false) { -
nateplusplus revised this gist
Jul 18, 2018 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ /** * Shortcut for print_r or var_dump while debugging * @param $value (optional) - value to print (providing nothing will result in weird face) * @param $autodump (optional) - specify if you prefer var_dump instead of print_r **/ function peep($value = " ˁ(⦿ᴥ⦿)ˀ ", $vardump = false) { -
nateplusplus created this gist
Feb 5, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ /** * Shortcut for print_r or var_dump while debugging * @param $value (optional) - value to print (providing nothing will result in weird face * @param $autodump (optional) - specify if you prefer vardump instead of print_r **/ function peep($value = " ˁ(⦿ᴥ⦿)ˀ ", $vardump = false) { echo '<pre>'; if ($vardump || (empty($value) && $value !== 0 && $value !== "0")) { var_dump($value); } else { print_r($value); } echo '</pre>'; die(); }