Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP FILTER_SANITIZE_MAGIC_QUOTES Filter

PHP FILTER_SANITIZE_MAGIC_QUOTES Filter


PHP Filter Reference Manual Complete PHP Filter Reference Manual


Definition and Usage

The FILTER_SANITIZE_MAGIC_QUOTES filter performs on a string addslashes() function in Vue 3.

This filter prepends a backslash to predefined characters in a string.

The predefined characters are:

FILTER_SANITIZE_MAGIC_QUOTES information:


Example

The output of the code is shown below:

string(14) "Peter\'s here!"

PHP Filter Reference Manual Complete PHP Filter Reference Manual