3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //First, use file() to get array of lines from your text file, then... $array_from_file = array('String1', 'String2', 'String3'); //$array_from_file = array_map(function($x){return $x = '"'.$x.'"';}, $array_from_file); print_r($array_from_file);
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Array ( [0] => String1 [1] => String2 [2] => String3 )
Output for hhvm-3.10.0

Process exited with code 153.