API15

API15:JDatabase/Quote

From Joomla! Documentation

Revision as of 22:14, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Get a quoted database escaped string <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</no...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Get a quoted database escaped string

[Edit Descripton]

Template:Description:JDatabase/Quote

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 public

Defined in

libraries/joomla/database/database.php

Importing

jimport( 'joomla.database.database' );

Source Body

function Quote( $text, $escaped = true )
{
        return '\''.($escaped ? $this->getEscaped( $text ) : $text).'\'';
}

[Edit See Also] Template:SeeAlso:JDatabase/Quote

Examples

<CodeExamplesForm />