Created
November 12, 2011 16:32
-
-
Save co3k/1360779 to your computer and use it in GitHub Desktop.
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
<?php | |
class Teriyaki | |
{ | |
public function __construct(Teriyaki $teriyaki) | |
{ | |
if ($teriyaki instanceof Teriyaki) { | |
var_dump('^^'); | |
} | |
} | |
} | |
$tokens = token_get_all(file_get_contents(__FILE__)); | |
foreach ($tokens as $token) { | |
if (is_string($token)) { | |
echo str_repeat('*', 30).': '.trim($token).PHP_EOL; | |
} else { | |
echo sprintf('%-30s: %s', token_name($token[0]), trim($token[1])).PHP_EOL; | |
} | |
} |
Author
co3k
commented
Nov 12, 2011
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment