On Saturday 25 August 2001 14:44, Saurabh Kapoor wrote:
> I am a C programmer, looking to migrate some code to PHP (Unusual, but
> my colleagues request it).
>
> Can someone tell me the size (in bytes) of the type int in PHP.

It's sizeof (int), i.e. the same size as an int in C on that platform. 
Typically that's 32 or 64 bits

> I need a 16 bit (2 byte) storage unit (I use a lot of bitwise
> operations)

Should be trivial to use larger ints for that.

-- 
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)

The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka", but "That's funny..."

- Isaac Asimov

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to