xPDO.parseBindings
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::parseBindings¶
Replaces named or positional placeholders in a SQL string with their corresponding values from a bindings array, quoting values as needed. Used internally to build the final SQL from a query with bindings.
Syntax¶
string parseBindings (string $sql, array $bindings)
Example¶
$sql = $xpdo->parseBindings('SELECT * FROM my_table WHERE id = :id', array(':id' => 42));
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










