doesn't remove a trailing comma. What it does is replacing the last element of the array with an empty string.$array[@array -1]="";
It's much better to not use an explicite loop, but to use join. Then you don't have to remove any trailing commas either.
Abigail
In reply to Re: Re: Converting an index record array into a comma-separated array.
by Abigail-II
in thread Converting an index record array into a comma-separated array.
by brentheigold
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |