The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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. |
![]() |
|
|