[PHP] How to implode multi-dimensional arrays?

2002-11-14 Thread René Fournier
The docs don't seem to discuss this... Or maybe I'm looking in the 
wrong place. Anyway, I want to convert a multidimensional array back to 
the tab-delimited format it began as (\t separating fields, \n 
seperating records/rows)...  Any ideas???

...Rene

---
René Fournier,
[EMAIL PROTECTED]

Toll-free +1.888.886.2754
Tel +1.403.291.3601
Fax +1.403.250.5228
www.smartslitters.com

SmartSlitters International
#33, 1339 - 40th Ave NE
Calgary AB  T2E 8N6
Canada


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to implode multi-dimensional arrays?

2002-11-14 Thread Jonathan Sharp
foreach( $array AS $d2 )
{
   $string .= implode('', $d2) . \n;
}

-js


René Fournier wrote:
 The docs don't seem to discuss this... Or maybe I'm looking in the wrong
 place. Anyway, I want to convert a multidimensional array back to the
 tab-delimited format it began as (\t separating fields, \n
 seperating records/rows)...  Any ideas???
 
 Rene
 
 ---
 René Fournier,
 [EMAIL PROTECTED]
 
 Toll-free +1.888.886.2754
 Tel +1.403.291.3601
 Fax +1.403.250.5228
 www.smartslitters.com
 
 SmartSlitters International
 #33, 1339 - 40th Ave NE
 Calgary AB  T2E 8N6
 Canada
 
 




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] How to implode multi-dimensional arrays?

2002-11-14 Thread Jonathan Sharp
Dope...try this instead...

foreach ( $array AS $a )
{
$string .= implode(\t, $a) . \n;
}

-js


Jonathan Sharp wrote:
 foreach( $array AS $d2 )
 {
$string .= implode('', $d2) . \n;
 }
 
 -js
 
 
 René Fournier wrote:
 
The docs don't seem to discuss this... Or maybe I'm looking in the wrong
place. Anyway, I want to convert a multidimensional array back to the
tab-delimited format it began as (\t separating fields, \n
seperating records/rows)...  Any ideas???

Rene

---
René Fournier,
[EMAIL PROTECTED]

Toll-free +1.888.886.2754
Tel +1.403.291.3601
Fax +1.403.250.5228
www.smartslitters.com

SmartSlitters International
#33, 1339 - 40th Ave NE
Calgary AB  T2E 8N6
Canada


 
 
 
 




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php