Re: Integer in PHP

From: Date: Tue, 22 Jan 2002 08:06:15 +0000
Subject: Re: Integer in PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-81495@lists.php.net to get a copy of this message
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 <jerryuk007@gmx.net> > To: php-general@lists.php.net > 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: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > ---------------------------------------------------------------------- A real friend is one who walks in when the rest of the world walks out ----------------------------------------------------------------------

« previous php.general (#81495) next »