Last active
July 11, 2020 10:22
-
-
Save nataliemarleny/22660848807a8c5b90610e1bf57cd705 to your computer and use it in GitHub Desktop.
Generalised structured var dump for php
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 characters
function structured_var_dump($arr) { | |
return '<pre>' . var_export($arr, true) . '</pre>'; | |
} |
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 characters
<?= structured_var_dump($module_selected) ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment