I have a string that can be any length and contain any
number or words.  Each string also has,  somewhere
near end, a list of parameters that can begin with any
number of five or six different parameter markers. I
need to find the position of the first of these
parameters markers, which can be in any order, so I
can seperate the user string from the parameters...and
I can't change the way the information is provided.

The only way I could get this to work is, since
there's only five different markers, locate the
position of each marker in the string, stick it in an
array, sort the array and find the first element that
is greater than 3 (the strpos uses an offset of 3
since the user portion of the string cannot be less
than three charcters long plus a space), this element
has to be the marker and position that begins the
parameter portion of the string.

Anyone know of a better more elegant ( read as faster)
way to handle this problem. 

rm

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to