xPDO.escape
Last updated not available | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$185 per month—let's make that $500!
Learn morexPDO::escape¶
Escapes an identifier (table or column name) for the current driver, wrapping it in the appropriate quote characters (backticks for MySQL, double quotes for most others). This is for identifiers only — to escape a value, use quote().
Syntax¶
string escape (string $string)
Example¶
$sql = 'SELECT * FROM ' . $xpdo->escape('my_table');
See Also¶
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$185 per month—let's make that $500!
Learn more










