Hi
I am updating a script wrote a script few years ago using the following
to remove everything but alpha numatic characters but I understand that the function will no longer exists in PHP6 and that the use now of this function is 'highly discouraged'
I think the correct replacement is preg_replace. Is this correct and does everything within the brackets remain unchanged?
Further quick question in the first part within brackets ("[^A-Za-z0-9]" what does the ^ actually do? I can't for the life of me remember why it's there.
Thanks