RE: [PHP] INT function?
| From: | bvr | Date: | Thu, 21 Feb 2002 01:19:13 +0000 |
| Subject: | RE: [PHP] INT function? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-85650@lists.php.net to get a copy of this message | ||
On Thu, 21 Feb 2002 12:10:53 +1100, Martin Towell wrote:
>$z = (int)($x / $y); // should work
>
>or
>
>$z = $x / $y;
>settype($z, "integer");
or
$z = intval($x / $y);
bvr.