Outputing an Array Question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Outputing an Array Question

Post 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!
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

Code: Select all

echo implode(' ', $array);
impulse()
Forum Regular
Posts: 748
Joined: Wed Aug 09, 2006 8:36 am
Location: Staffordshire, UK
Contact:

Post by impulse() »

Post Reply