foreach (array() as $foo) { $bar[] = $foo; } (do something with $bar)