Hi, I would like to remove all chars but alpha numeric and _- from a string.
I have got this so far:
preg_replace('/[^a-zA-Z0-9\s]/', '', $string)
But i don't know how to leave in - and _
Any help would be much appreciated.
Results 1 to 2 of 2
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)