<?php $names = ['wallace', 'guilherme', '', '']; foreach(array_filter($names) as $name) { echo $name, PHP_EOL;}
Standard input is empty
wallace guilherme
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!