Re: [PHP] Explode and Trim

2002-04-05 Thread Joshua E Minnie
It works great using the foreach statements, but for some reason couldn't make it work the other way. Oh well, no one ever said there was only one way to do things when programming. Thanks for your help. --- Joshua E Minnie CIO [EMAIL PROTECTED] "Don't work for recognition, but always do work

Re: [PHP] Explode and Trim

2002-04-05 Thread Joshua E Minnie
Unfortunately it doesn't. That is why I am kind of puzzled by the situation. -- Joshua E Minnie CIO [EMAIL PROTECTED] "Don't work for recognition, but always do work worthy of recognition." "Maxim Maletsky" <[EMAIL PROTECTED]> wrote > > I think what yo wrote should be working fine for you. >

RE: [PHP] Explode and Trim

2002-04-04 Thread Maxim Maletsky
I think what yo wrote should be working fine for you. My way of your code: foreach(file($storelist) as $line_num=>$line_data) { foreach(explode(':', $line) as $key=>$val) { $val = trim($val); // remove whitespaces around // now you are inside eac