Last active
June 4, 2019 12:53
-
-
Save ScarletPonytail/34584bb5762e5995d1302322dd21e265 to your computer and use it in GitHub Desktop.
PHP - Echo to console
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
// Echo a specific thing | |
<?php echo '<script>console.log("Your stuff here")</script>'; ?> | |
// Echo a dynamic element | |
<?php echo '<script>console.log( ' . get_page_template() . ' )</script>'; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment