Marc Reichelt: Array to String

Beitrag lesen

Hallo richard,

Also aus...
$array = array("eins", "zwei", "drei");

...soll...

$string = "eins zwei drei";

...werden. Und das möglichst direkt.

Ganz einfach:
$array = array("eins", "zwei", "drei");
$string = implode(" ", $array);

Mehr dazu:
http://de2.php.net/manual/de/function.implode.php

Bis dann!

Marc Reichelt || http://www.marcreichelt.de/

--
Linux is like a wigwam - no windows, no gates and an Apache inside!
SELFCode: ie:{ fl:| br:> va:} ls:< fo:} rl:( n4:( ss:) de:> js:| ch:? sh:| mo:) zu:)
http://emmanuel.dammerer.at/selfcode.html