API16:JDatabase/quote
From Joomla! Documentation
Description
Get a quoted database escaped string
<! removed transcluded page call, red link never existed >
Syntax
quote($text, $escaped=true)
| Parameter Name | Default Value | Description |
|---|---|---|
| $text | A string | |
| $escaped | true | Default true to escape string, false to leave the string unchanged |
Returns
string
Defined in
libraries/joomla/database/database.php
Importing
jimport( 'joomla.database.database' );
Source Body
public function quote($text, $escaped = true)
{
return '\''.($escaped ? $this->getEscaped($text) : $text).'\'';
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples