| Validation
 Example #1 Validating email addresses with filter_var 
<?phpThe above example will output: This (joe@example.com) email address is considered valid. This (bogus) email address is considered invalid. 
 Example #2 Validating IP addresses with filter_var 
<?phpThe above example will output: This (ip_a) IP address is considered valid. 
 Example #3 Passing options to filter_var 
<?phpThe above example will output: This (int_a) integer is considered valid (between 0 and 3). This (int_c) integer is considered valid (between 0 and 3) and is 1. |