How can I code a function in PHP to check input string with allowed pattern? my pattern is like this:
1-1341498217
First section is one digit integer from 0 to 9 and the second section after dash is 10 digits positive integer number.
Thanks.
How can I code a function in PHP to check input string with allowed pattern? my pattern is like this:
1-1341498217
First section is one digit integer from 0 to 9 and the second section after dash is 10 digits positive integer number.
Thanks.