fork(1) download
  1. <?php
  2.  
  3. $string = file_get_contents("test.txt");
  4. $regExp = "/\\b[a-z]{1,4}\\b/ui";
  5. $result = [];
  6. preg_match_all($regExp, $string, $result);
  7. echo count($result[0]);
Success #stdin #stdout #stderr 0.02s 52432KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Warning:  file_get_contents(test.txt): failed to open stream: No such file or directory in /home/k9RkgS/prog.php on line 3