3v4l.org

run code in 300+ PHP versions simultaneously
<?php //First, use file() to get array of lines from your text file, then... $array_from_file = array('String1', 'String2', 'Stri"ng3'); $array_from_file = array_map(function($x){return $x = 'z"'.$x.'"';}, $array_from_file); print_r($array_from_file);

preferences:
30.84 ms | 402 KiB | 5 Q