Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $lines = file('list.txt');
- $lines = preg_grep("/test/", $lines);
- foreach ($lines as $line)
- {
- echo $line . "<br>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement