Re: string functions and manipulations in php Let us discuss about is_int() and is_float() is_int() - Check whether the given variable is an integer
Syntax:
bool is_int ( mixed var )
Example:
echo is_int(5) ? 'Integer' : 'Not an Integer'; is_float() - Check whether the given variable is an float
Syntax:
bool is_float( mixed var )
Example:
echo is_float(4.6) ? 'Float Variable' : 'Not a Float Variable'; |