Tag

quote

1 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Apr 26, 2021 · Databases

Using PDO::quote to Safely Quote Strings in PHP

This article explains how to use PHP's PDO::quote function to safely add quotes to strings for SQL statements, describes its syntax and parameters, and provides two practical code examples demonstrating quoting of normal and potentially dangerous strings.

DatabasePDOSQL
0 likes · 3 min read
Using PDO::quote to Safely Quote Strings in PHP