You are here

function DB_common::quoteString in Flickr API 5

DEPRECATED: Quotes a string so it can be safely used within string delimiters in a query

Parameters

string $string the string to be quoted:

Return value

string the quoted string

Deprecated

Method deprecated some time before Release 1.2

See also

DB_common::quoteSmart(), DB_common::escapeSimple()

File

phpFlickr/PEAR/DB/common.php, line 246

Class

DB_common
DB_common is the base class from which each database driver class extends

Code

function quoteString($string) {
  $string = $this
    ->quote($string);
  if ($string[0] == "'") {
    return substr($string, 1, -1);
  }
  return $string;
}