Page 1 of 1

Outputing an Array Question

Posted: Sun Jun 10, 2007 1:52 pm
by tecktalkcm0391
I keep forgetting how to do this i have an array of 3 or 4 things and I want to output this together:

Code: Select all

$array[] = 'this';
$array[] = 'is';
$array[]= 'together';

// I want to output just like this:
// this is together.
Thanks!

Posted: Sun Jun 10, 2007 2:12 pm
by Benjamin

Code: Select all

echo implode(' ', $array);

Posted: Sun Jun 10, 2007 2:29 pm
by impulse()