Tagged articles
7 articles
Page 1 of 1
php Courses
php Courses
Sep 29, 2025 · Backend Development

Master PHP’s addcslashes(): Escape Characters Like a Pro

This guide explains PHP’s addcslashes() function, its syntax, parameter details, practical examples for escaping specific characters, and tips on when to use addslashes() instead, helping developers handle string escaping reliably in their applications.

BackendPHPaddcslashes
0 likes · 3 min read
Master PHP’s addcslashes(): Escape Characters Like a Pro
php Courses
php Courses
Dec 15, 2023 · Backend Development

Using PHP htmlspecialchars() to Escape Special Characters

This article explains the PHP htmlspecialchars() function, its syntax and parameters, demonstrates how to escape special characters, quotes, and specify encoding or disable double‑encoding, and shows how it helps prevent XSS attacks in web applications.

BackendPHPXSS
0 likes · 4 min read
Using PHP htmlspecialchars() to Escape Special Characters
php Courses
php Courses
Sep 21, 2023 · Backend Development

PHP quotemeta() Function: Syntax, Usage, and Replacement with preg_quote()

The article explains PHP's quotemeta() function, which escapes special regex characters in a string, details its syntax and parameters, lists the characters it escapes, notes its deprecation after PHP 5.3, and recommends using the newer preg_quote() function with example code.

Backend DevelopmentPHPpreg_quote
0 likes · 3 min read
PHP quotemeta() Function: Syntax, Usage, and Replacement with preg_quote()
php Courses
php Courses
Sep 20, 2023 · Backend Development

PHP stripslashes() Function: Syntax, Usage, and Precautions

The article explains PHP's stripslashes() function, its syntax, how to use it for removing backslash escapes in strings and database results, precautions such as escape order and scope, and best practices for safe string handling.

PHPaddslashesdatabase
0 likes · 6 min read
PHP stripslashes() Function: Syntax, Usage, and Precautions
php Courses
php Courses
Sep 19, 2023 · Backend Development

Understanding PHP's addslashes() Function: Syntax, Usage, and Security Considerations

The article explains PHP's addslashes() function, detailing its syntax, how it escapes specific characters, provides code examples, demonstrates its role in preventing SQL injection, and advises using stronger escaping methods such as mysqli_real_escape_string or PDO prepared statements.

Backend DevelopmentSQL injectionSecurity
0 likes · 6 min read
Understanding PHP's addslashes() Function: Syntax, Usage, and Security Considerations
php Courses
php Courses
Sep 16, 2023 · Information Security

How to Use PHP htmlspecialchars() to Escape Special Characters and Prevent XSS

This article explains the purpose, syntax, optional parameters, and practical examples of PHP's htmlspecialchars() function, demonstrating how to safely convert special characters to HTML entities, control encoding and flags, avoid double‑encoding, and follow important usage considerations for secure web development.

PHPWeb SecurityXSS
0 likes · 6 min read
How to Use PHP htmlspecialchars() to Escape Special Characters and Prevent XSS