Re: sizeof(int)

From: Date: Mon, 27 Aug 2001 09:01:54 +0000
Subject: Re: sizeof(int)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-64603@lists.php.net to get a copy of this message
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

« previous php.general (#64603) next »