I want to output variable-length data in columns in php-cli script
Example:
$pepole = Array( 'Mirco Dellarovere' => 'Artista', 'Nino Pepe' => 'Attore', 'Zoe Yan' => 'Futurista', 'Mino' => 'Elettricista' ); foreach($pepole as $name => $work) { echo "$name\t$work\n"; }
The output will be
Mirco Dellarovere Artista Nino Pepe Attore Zoe Yan Futurista Mino Elettricista
but i want it that way
Mirco Dellarovere Artista Nino Pepe Attore Zoe Yan Futurista Mino Elettricista
as?
:) thanks
nulll
source share