Last active
April 6, 2020 01:14
-
-
Save ojhaujjwal/e149652c4b6769debae275c7c5dc2abe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$lines = getLines('/path-to-file'); | |
foreach ($lines as $line) { | |
if (SOME CONDITION) { | |
break; | |
} | |
echo $line. "\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment