Validation
Example #1 Validating email addresses with filter_var
The above example will output: Email address 'joe@example.com' is considered valid. Email address 'bogus' is considered invalid.
Example #2 Validating IP addresses with filter_var
The above example will output: IP address '127.0.0.1' is considered valid.
Example #3 Passing options to filter_var
The above example will output: Integer A '1' is considered valid (between 0 and 3). Integer C '1' is considered valid (between 0 and 3). |