Last active
February 6, 2016 12:45
Revisions
-
kurozumi revised this gist
Feb 6, 2016 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains 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 charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,8 @@ <?php $file = new RegexIterator(new SplFileObject("sample.txt", "r"), '/^\d*$/'); foreach($file as $line) { var_dump($line); } -
kurozumi created this gist
Feb 6, 2016 .There are no files selected for viewing
This file contains 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ <?php $it = new RegexIterator(new SplFileObject("sample.txt", "r"), '/^\d*$/'); foreach($it as $line) { var_dump($line); }