View Single Post
  #26 (permalink)  
Old 10-16-2007, 04:28 AM
vims vims is offline
D-Web Programmer
 
Join Date: Oct 2007
Posts: 67
vims is on a distinguished road
Post 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';

Reply With Quote