Created
April 29, 2013 15:58
-
-
Save anonymous/5482562 to your computer and use it in GitHub Desktop.
Revisions
-
There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,27 @@ <?php class Foo { public function bar() { return "bar"; } public static function baz() { return "baz"; } } $foo = new Foo(); $code = ' echo $foo.bar(); echo Foo::baz(); '; $newcode = str_replace(".", "->", $code); eval($newcode);