Created
September 22, 2014 20:57
-
-
Save whyisjake/befe9ad5b2fb1bc1330f to your computer and use it in GitHub Desktop.
Little Sublime Text snippet to take a PHP object, and output as JSON, and then console.log() it.
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
<snippet> | |
<content><![CDATA[<script>console.log(<?php echo json_encode( ${1:\$this} ); ?>);</script>]]></content> | |
<tabTrigger>phpconsole</tabTrigger> | |
<scope>source.php</scope> | |
<description>PHP Console</description> | |
</snippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment