filter_var

PHP 5 >= 5.2.0, PHP 7, PHP 8
filter_var - Filters a variable with a specified filter
Manual
Code Examples

Example #1 A filter_var example

Result: string(15) "bob@example.com" bool(false)
PHP Version:


Function filter_var:

Data Filtering Functions

Most used PHP functions