Quick one; I know a solution, but I\'m looking for something more elegant if it exists.
I\'m using PDO for prepeared statements:
$sql = \"INSERT INTO
$source->execute($sql, array( 'foo' => $foo, 'bar' => $bar, 'baz' => $baz ));
This is presuming the above calls PDOStatement::execute() under the hood, with the above array as its argument.1
PDOStatement::execute()
array
:)
5.2.17
5.3.8