Hi, Use intval("2.05");
I hope this will do the needful for you. with regards, Sukumar .S On Mon, 21 Jan 2002, Jerry wrote: > Date: Mon, 21 Jan 2002 13:35:34 -0000 > From: Jerry <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: [PHP] Integer in PHP > > Hi, > > I'm new in PHP, coming from JavaScript. > In JavaScript you had the function parseInt which was really useful. > For example parseInt("2.05") will return 2... > > How can I do that in PHP ? > > Thanks. > > Jerry > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > ---------------------------------------------------------------------- A real friend is one who walks in when the rest of the world walks out ---------------------------------------------------------------------- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]