Last active
November 8, 2021 12:34
-
-
Save livevasiliy/0c05b34d241219a7f25b661f1e43b0df to your computer and use it in GitHub Desktop.
Beautiful display var_export. [EN] | Вывести в отформатированном формате var_export. [RUS]
This file contains 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
<?php | |
/** | |
* Beautiful display var_export. | |
* Вывести в отформатированном формате var_export. | |
* | |
* @return mixed | |
*/ | |
function pre_export($value) | |
{ | |
echo '<pre>'; | |
var_export($value); | |
echo '</pre>'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment