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
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): [
2 matches
Mail list logo