fork(6) download
  1. <?php
  2.  
  3. $names = ['wallace', 'guilherme', '', ''];
  4.  
  5. foreach(array_filter($names) as $name) {
  6.  
  7. echo $name, PHP_EOL;
  8. }
Success #stdin #stdout 0s 52488KB
stdin
Standard input is empty
stdout
wallace
guilherme