[PHP] Re: ArrayInterator always true

2012-01-27 Thread TCP
break; }// End for //If option is not set first. } else { //Try other approach. }// End if } On Tue, Jan 24, 2012 at 4:18 AM, TCP wrote: > I'm trying to parse an $agrv array that contain options (without > square brackets): [

[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