Chris
would implode(',', array_values($temp)) do?
Neven
What's the tersest way to turn this -
$temp = array(
array( 'value' => 'one', ),
array( 'value' => 'two', ),
array( 'value' => 'three' ),
) ;
into this -
$str = 'one,two,three' ;
I'm using
foreach ( $temp as $t ) {
$t2[] = $t['value'] ;
}
$str = implode(',', $t2);
... but my brain is nagging me that there's a one-liner.
What am I missing?
--
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]