What is the function that puts \ to escape characters?
I need to put \ in front of all ' characters in a string. I know there is a function to do this. I just don't know what it is called, and tried google, but wasn't sure what it was called to search for it.
I need to put \ in front of all ' characters in a string. I know there is a function to do this. I just don't know what it is called, and tried google, but wasn't sure what it was called to search for it.
Always go to php.net if you need help with PHP functions, they have great documentation.
I did go there, I just wasn't sure what it was called, so it was kinda hard to figure it out. But it is add slashes. I figured it would have been called something else.
If it's for database insertion, there's a standardized way to do it via the database wrapper class in vB. Then again, since 99.9 (overbar) % of installations use MySQL as it is, it makes it somewhat pointless, especially given it essentially is a wrapper for addslashes itself.
I did go there, I just wasn't sure what it was called, so it was kinda hard to figure it out. But it is add slashes. I figured it would have been called something else.
Like I said, they have a great "Documentation", view the documentation. They have it categorized: