in reply to Converting an index record array into a comma-separated array.
The dot operator appends, just like the + in java on strings. My example would give you an extra comma, but you could remove it withforeach $element (@array) { $var = $var . $element . ","; }
$array[@array -1]="";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Converting an index record array into a comma-separated array.
by Abigail-II (Bishop) on Jul 15, 2002 at 15:49 UTC |