Function Database_Static_mysql_pdo->escape_string

Definitions

sources/database/mysql_pdo.php

  • Escape a string so it may be inserted into a query. If SQL statements are being built up and passed using db_query then it is essential that this is used for security reasons. Otherwise, the abstraction layer deals with the situation.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: string

Parameters

Name Type Default Set Range Description
$string string required parameter N/A N/A The string

Return

  • The escaped string
  • Type: string
  • Set: N/A
  • Range: N/A