Boolean functions
is_email
Alias: isEmail
Check if the given string is valid email address
- Description
- Example
- Result
is_empty
Check if the given variable is empty
- Description
- Example
- Result
is_empty(string)
is_empty(someEmptyVar)
is_empty(someNonEmptyVar)
true
false
is_url
Check if the given variable/string is a valid URL
- Description
- Example
- Result
is_url(string)
is_url(someVarThatIsUrl)
is_url(someVarThatIsNotUrl)
true
false
is_numeric
Check if the given variable/string is of numeric value
- Description
- Example
- Result
is_numeric(value)
is_numeric(someVarThatIsNumeric)
is_numeric(someVarThatIsNotNumeric)
true
false
is_json
Check if the given variable/string is a valid JSON
- Description
- Example
- Result
is_json(value)
is_json(someVarThatIsJson)
is_json(someVarThatIsNotJson)
true
false
is_int
Check if the given variable is an integer
- Description
- Example
- Result
is_int(value)
is_int(someVarThatIsIntger)
is_int(someVarThatIsNotInteger)
true
false
is_float
Check if the given variable is a float
- Description
- Example
- Result
is_float(value)
is_float(someVarThatIsFloat)
is_float(someVarThatIsNotFloat)
true
false