Difficult String/number fomatation plz hlp!

From: Date: Tue, 04 Feb 2003 10:06:37 +0000
Subject: Difficult String/number fomatation plz hlp!
Groups: php.windows 
Request: Send a blank email to php-windows+get-18349@lists.php.net to get a copy of this message
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 .

« previous php.windows (#18349) next »