I know str_replace() will be useful but I don't know how to use it exactly because the values in the database will be,


So for c++ we can use but for all others what to do.If the user enters a new category with special characters ,for that also I dont want to get the invalid quantifier error.

So Pls help me..