Episode #22: PostGreSQL escape characters
38/41
Episode #19: Deprecate curly brace syntax for accessing array elements and string offsets
Deprecations in PHP 7.4
Given:
•
That:
PDO uses
?
as prepared value place holder
•
And:
New SQL syntax uses
?
as an operator:
PHP 7.4 has an escape character to provide the solution:
$stmt = $pdo->prepare('SELECT \* FROM tbl WHERE json_col *??* ?');