[REVIEW] database->getEscaped

Last reviewed: Not reviewed
phpDocumentor

database->getEscaped

Escapes characters with special meaning for the database.

Syntax

string getEscaped ( string $text )

$text
is the raw string to be escaped.

Examples

Example:

global $database;
 
$text = "What's my line?";
echo $database->getEscaped( $text );

will produce:

What\'s my line?

Please report any errors on this page to the Developer Documentation Forum.

Last Updated ( Monday, 25 December 2006 )