Skip to content

PHP – file() lines

$lines = file('all-words.txt'); foreach ($lines as $line_num => $line) { echo "Line number ".$line_num; }
Code language: PHP (php)

See also  How to make a disk cache using PHP
Tags:
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x