imploding a multi-dimensional array
| From: | Tom Wuyts | Date: | Thu, 03 Jun 2004 18:07:41 +0000 |
| Subject: | imploding a multi-dimensional array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-187568@lists.php.net to get a copy of this message | ||
Hi,
I want to implode a multi-dimensional array into 1 string.
I use the next code to put it into the array:
$spots = Array();
$rows = explode( "@", $row['spots'] );
foreach( $rows as $rij )
{
$spots[] = explode( "&", $rij );
}
( After the implode, you should get a string that looks like this:
1&2&0@1&0&1@2&2&1 )
I'm having trouble with imploding them, can somebody help please?
Grtz,
RC
----------------------------------------------------
Tom.wuyts@wuyts.org/
http://www.wuyts.org/tom/phpbb2/
----------------------------------------------------