[PHP] ArrayInterator always true

2012-01-23 Thread TCP
I'm trying to parse an $agrv array that contain options (without square brackets): [-a abc -b bbc bcc -d dbc -e -f] I use ArrayIterator to iterate through the line: - whenever it reach /-\w/, it read through the following qoutes until it reach another /-\w/. The problem is it seems the

[PHP] Re: ArrayInterator always true

2012-01-27 Thread TCP
. }// End if } On Tue, Jan 24, 2012 at 4:18 AM, TCP tgc...@gmail.com wrote: I'm trying to parse an $agrv array that contain options (without square brackets): [-a abc -b bbc bcc -d dbc -e -f] I use ArrayIterator to iterate through the line:  - whenever it reach /-\w/, it read through