RE: [PHP] "Trim" an array?

2001-02-03 Thread PHPBeginner.com
:32 AM To: PHP List Subject: [PHP] "Trim" an array? I looked through the archives and couldn't find anything on this. I have a web form which takes 9 values to create a definition for a table that would have up to 9 columns. I made the table so that each form field is submitted as a

Re: [PHP] "Trim" an array?

2001-02-02 Thread Mark Maggelet
On Fri, 02 Feb 2001 17:31:43 -0500, Thomas Deliduka ([EMAIL PROTECTED]) wrote: >I looked through the archives and couldn't find anything on this. > >I have a web form which takes 9 values to create a definition for a >table >that would have up to 9 columns. > >I made the table so that each form fi

Re: [PHP] "Trim" an array?

2001-02-02 Thread Thomas Deliduka
On 2/2/01 5:34 PM this was written: > while(list($key,$value)=each($array)){ > if(empty($value)) unset $array[$key]; > } Sweet! Thanks, that was easy. -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.com/ -- PH

[PHP] "Trim" an array?

2001-02-02 Thread Thomas Deliduka
I looked through the archives and couldn't find anything on this. I have a web form which takes 9 values to create a definition for a table that would have up to 9 columns. I made the table so that each form field is submitted as an array so that I can simply step through each value and create t