Re: Integer in PHP
| From: | val petruchek | Date: | Mon, 21 Jan 2002 13:36:45 +0000 |
| Subject: | Re: Integer in PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-81359@lists.php.net to get a copy of this message | ||
intval (2.05);
Valentin Petruchek (aki Zliy Pes)
http://zliypes.com.ua
mailto:val@zliypes.com.ua
----- Original Message -----
From: "Jerry" <jerryuk007@gmx.net>
To: <php-general@lists.php.net>
Sent: Monday, January 21, 2002 3:35 PM
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
>
>