Last active
December 13, 2018 02:28
-
-
Save hackvan/91273a7f6fb0949d8a89c52b357b0cae 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
code = "<?php \n" | |
code += " $x = 0; \n" | |
(1..3).each do |n| | |
code += " $x = $x + #{n}; \n" | |
end | |
code += " print($x); \n?>" | |
File.open("dummy.php", 'w') { |file| file.write(code) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment