We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 831272b commit c301ce7Copy full SHA for c301ce7
convert.php
@@ -0,0 +1,10 @@
1
+<?php
2
+// $function="\twrite(output, ";
3
+$function="\tprintf(\"%s\", ";
4
+$input=file_get_contents("input.txt");
5
+$lines=explode("\n", $input);
6
+foreach($lines as $line) {
7
+ $line=str_replace(" ", "\\t", $line);
8
+ $line=str_replace("\"", "\\\"", $line);
9
+ print $function."\"".$line."\\n\");\n";
10
+}
0 commit comments