![]() |
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.
|
addslashes() ?
|
Quote:
|
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.
|
Quote:
http://us2.php.net/manual/en/ref.strings.php For example. |
All times are GMT. The time now is 08:14 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|