tzzoug Posted July 7, 2007 Share Posted July 7, 2007 hello i am trying to write a condition that would check for a given format for example, i want to do something like if the format of the input is NUMBER.NUMBER, do something or else, do something else also , for example, if the input format is STRING.STRING, do something else i vaguely remember stuff like [1-9], or [A-Z], but im not able to find anything :S thx Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted July 7, 2007 Share Posted July 7, 2007 try looking into the regex on php.net But yes you can test that very easily using regex using a switch/if-else Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.