Hi this is probably a very simple question but how do you remove characters from strings i have already tried ltrim and str_replace but the certain character still stayed in the string.
Not sure if its just the character im searching for or if its the function itself which is screwing up.
Any how the actual character is --> ' <-- in other words an Apostrophe and here is an example of the string im trying to remove it from
--> "Here's a fantastic opportunity".
The reason im trying to do this is because when i write to a database i get an error with this specific character so i thought just remove it.
Thanks for any help in advanced,
Not sure if its just the character im searching for or if its the function itself which is screwing up.
Any how the actual character is --> ' <-- in other words an Apostrophe and here is an example of the string im trying to remove it from
--> "Here's a fantastic opportunity".
The reason im trying to do this is because when i write to a database i get an error with this specific character so i thought just remove it.
Thanks for any help in advanced,
Comment