GameConsoleRepairCentreUK
asked on
PHP - How to strip special characters from a string, but leave the dots?
I have this code:
This strips all special characters from the string. How strip all special character APART from dots (.) ?
$repairprice = preg_replace("/[^a-zA-Z0-9s]/", "", $repairprice);
This strips all special characters from the string. How strip all special character APART from dots (.) ?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER