> What is the syntax for dividing 7 by 2 and getting 3; not 3.5? you can use: $intVar = ((int)( 7 / 2 )); Chris
- [PHP] Integer division Todd Cary
- [PHP] makerpm Lou Spironello
- Re: [PHP] Integer division Marcelo Gulin
- Boget, Chris
> What is the syntax for dividing 7 by 2 and getting 3; not 3.5? you can use: $intVar = ((int)( 7 / 2 )); Chris