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

PHP FILTER_SANITIZE_ENCODED Filter

PHP FILTER_SANITIZE_ENCODED Filter


PHP Filter Reference Manual Complete PHP Filter Reference Manual


Definition and Usage

The FILTER_SANITIZE_ENCODED filter removes or URL-encodes unwanted characters.

This filter is very similar to the urlencode() function.

Possible flags:


Example

The output of the code is shown below:

string(29) "http%3A%2F%2Fwww.runoob.com"


PHP Filter Reference Manual Complete PHP Filter Reference Manual