|
#1
|
|||
|
|||
|
Hi I have a sign up form and it is linked to various php scripts that send api calls.
The api we use marks this as correct: Phone number: 8676544544 But this just brings an error: Phone number: 545-645-4242 Phone number: (545) 445-2454 even if there are spaces in between. Because of the dashes in between the numbers. How can I have the php script remove the dashes(-) in the phone number or even the spaces if there are any inputed?
|
|
#2
|
|||
|
|||
|
PHP Code:
would to turn into: 5456454242 |
|
#3
|
||||
|
||||
|
you could do it all at once, as well
PHP Code:
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
|
|