It depends on what you want to do and what version of PHP you are using. filter_input is a convenient method for checking some input data for a well-known target format, such as URLs, IP addresses or email addresses, but may only be available for PHP> = 5.2.
To validate user data (for example, a string of values โโseparated by commas), a regular expression would be more appropriate and therefore a way to jump.