Syntax
string quote( string str [, string esc[, string surrounding_string]] )
Description
The quote function puts the specified string between quotation marks. It inserts the "\" (backslash) character as required to "quote" any occurrences of the characters in the second argument to indicate that they are taken literally. The string is surrounded by a "surrounding_string" and defaults to the value of esc, which is optional and defaults to the value of the specified escape character. UThe quote function is useful when parsing arguments into commands which are shell scripts. The default escape character is a single quote.
Example
#this function will return: [This won\'t fail.] quote("This won't fail.", "'");