Hi!

I have a textfield wich allows any number of integers seperated with " ",
"," or "-"...

I need this input to be formated in two steps:
First into a sequence of numbers into an array, lowest first... Second to
the correct form of the initial input...

Example:

User input: "1,3, 3-6, 8" (string)
First step: 1,3,4,5,6,8 (array)
second step: "1,3-6,8" (string)

please help me with this one! I don't mind using ereg-functions though I'm
not good at it myself...


. bobo . www.elstudion.com . www.elstudion.com/bobo .




-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to