Define :
In this tutorial we have to learn about PHP filter_has_var() Function.The PHP filter_has_var() Function is inbuilt function in php.Ths is function is used to unction checks if variable of specified type exists or not. It returns true on success or false on failure.
Syntax
filter_has_var(input_type, var_name)
Parameter
Parameter | Description |
---|---|
type | Required. The input type to check for. Can be one of the following:
|
variable | Required. The variable name to check |
Given below example shows the example of PHP filter_has_var() Function :
Output : Email isn't there!