Re: INT function?

From: Date: Thu, 21 Feb 2002 01:14:12 +0000
Subject: Re: INT function?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-85648@lists.php.net to get a copy of this message
At 05:06 PM 2/20/2002 -0800, James Taylor wrote:
$x = 7; $y = 3; $z = $x / $y; I want $z to equal 2. In perl it would be $z = int($x / $y);
This is untested, but: $z = (int) ($x / $y); Should work.

« previous php.general (#85648) next »