Posted by Geoff Berrow on 04/05/06 23:06
Message-ID: <bUUYf.878243$x96.643349@attbi_s72> from Chris H contained
the following:
>What does (int) do? I recognize it as something to do with "integer". but im
>not sure what exactly the purpose is of the (int) is
http://uk2.php.net/manual/en/language.types.type-juggling.php#language.types.typecasting
That said, I don't really know why it's there. The result of dividing
something by 0.7 is quite likely to be something other than an integer.
There is even a warning about it
http://uk2.php.net/manual/en/language.types.integer.php#language.types.integer.casting
--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011
Navigation:
[Reply to this message]
|