andy_b_1502 Posted May 17, 2012 Share Posted May 17, 2012 Hi everyone, how do i add and ampersand symbol into preg_replace preg_replace("/[^a-zA-Z0-9\s\-\'\,\.\_]/" where do i place the symbol? & Quote Link to comment https://forums.phpfreaks.com/topic/262681-preg_replace/ Share on other sites More sharing options...
scootstah Posted May 17, 2012 Share Posted May 17, 2012 Presumably in the character class, between the [ and ]. Quote Link to comment https://forums.phpfreaks.com/topic/262681-preg_replace/#findComment-1346372 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.