April 2026
Intermediate
1009 pages
34h 15m
English
Regardless of whether you are working with HTML, database queries, or files, you will always encounter special characters. PHP already offers ready-made functions for the most important areas of application.
For database queries, you must escape certain characters.[ 58 ] This is done with the backslash (\). The addslashes(String) function inserts a backslash before single and double quotation marks, backslashes, and null values. When you write a string as a value in a database, you will often use this function so that the characters mentioned are not interpreted by SQL as belonging to the syntax. However, most database interfaces in PHP have their own invalidation ...
Read now
Unlock full access