note 104261 deleted from function.crc32 by danbrown

From: Date: Sat, 04 Jun 2011 17:27:50 +0000
Subject: note 104261 deleted from function.crc32 by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-180255@lists.php.net to get a copy of this message
Note Submitter: stepan dot zarubin at gmail dot com ---- I`d like to make a note on this post: /*-------------------------------------*/ <?php echo crc32('example')+4294967296; ?> gives you the same result as the CRC32() function in MySQL (>=4.1) "SELECT CRC32('example')" ....... /*-------------------------------------*/ This is actually wrong and works just for some strings, do not use this. crc32() php and mysql functions both return the same results. Use php sprintf() or printf() rather than echo() and read manual carefully.

« previous php.notes (#180255) next »