Hi,
I am trying to implement a php script that takes in a piece of text from users and interprets it to be a numeric range.
Examples of what I would consider valid entries would be "1-6" or "6+9+14" or "1-4,12" or "12".
This seems to me to be something that happens quite a lot in all sorts of situations so I was expecting to be able to find an example that could show me a sensible way to achieve this but I have searched high and low and can't find anything.
Can any of you point me in the right direction?
Thanks
M
I am trying to implement a php script that takes in a piece of text from users and interprets it to be a numeric range.
Examples of what I would consider valid entries would be "1-6" or "6+9+14" or "1-4,12" or "12".
This seems to me to be something that happens quite a lot in all sorts of situations so I was expecting to be able to find an example that could show me a sensible way to achieve this but I have searched high and low and can't find anything.
Can any of you point me in the right direction?
Thanks
M