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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php