RE: [PHP-WIN] equivalent C/C++'s atoi
| From: | Jeroen ten Berge | Date: | Thu, 12 Oct 2000 09:33:27 +0000 |
| Subject: | RE: [PHP-WIN] equivalent C/C++'s atoi | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-3190@lists.php.net to get a copy of this message | ||
Look at php.net's documentation for the functions ereg or explode...
-----Original Message-----
From: Emanuel Harangus [mailto:rygars@biofarm.ro]
Sent: donderdag 12 oktober 2000 12:33
To: php-windows@lists.php.net
Subject: [PHP-WIN] equivalent C/C++'s atoi
I need to get the integer part of a variable:
$val= "17.12";
I need that $val at a point to be "17" or 17
How can I do that in PHP??
Something like C/C++'s atoi or (int)(17.12) or floor(17.12)
Rygars
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
For additional commands, e-mail: php-windows-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net