The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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.
|
#2
|
||||
|
||||
addslashes() ?
|
#3
|
||||
|
||||
Quote:
|
#4
|
|||
|
|||
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.
|
#5
|
|||
|
|||
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.
|
#6
|
||||
|
||||
Quote:
http://us2.php.net/manual/en/ref.strings.php For example. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|