-
-
Save simonewebdesign/5482572 to your computer and use it in GitHub Desktop.
Revisions
-
simonewebdesign revised this gist
Apr 29, 2013 . 1 changed file with 1 addition and 1 deletion.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 @@ -16,7 +16,7 @@ public static function baz() { $code = ' $foo = new Foo(); echo $foo.bar(); # dots in PHP. Cool huh? echo Foo::baz(); '; -
simonewebdesign revised this gist
Apr 29, 2013 . 1 changed file with 1 addition and 3 deletions.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 @@ -13,13 +13,11 @@ public static function baz() { } } $code = ' $foo = new Foo(); echo $foo.bar(); echo Foo::baz(); '; $newcode = str_replace(".", "->", $code); -
simonewebdesign revised this gist
Apr 29, 2013 . 1 changed file with 1 addition and 1 deletion.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 @@ -24,4 +24,4 @@ public static function baz() { $newcode = str_replace(".", "->", $code); eval($newcode); // barbaz -
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);