Last active
June 19, 2024 12:09
-
-
Save MrWhiteD/6bed532b9b9feb555bcee9fe2db60243 to your computer and use it in GitHub Desktop.
[Дебаг в консоль] #consol #debug
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
if (!function_exists('console_log')) { | |
function console_log($data): void | |
{ | |
echo '<script>'; | |
echo 'console.log(' . json_encode($data) . ')'; | |
echo '</script>'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment