Hi dudes! I need code which picks .txt rows from . txt file to array. So there should be array = { "first row", "second row"; } etc. Thanks a lot! Voimis
So... How to use it <?php $lines = file('http://www.example.com/example.txt'); array = {$lines}; ?> Is this the right way or or or... I´m just now on school so I can´t check how it works, just quessing right now. sorry, I´m just a noob!
Or you can do like this to quickly access every array item and maybe modify it and print out $lines = file('http://www.example.com/example.txt'); foreach($lines as $line) echo htmlspecialchar($line).'<br />';