note 55301 deleted from function.intval by cmb

From: Date: Sun, 16 Feb 2020 13:49:25 +0000
Subject: note 55301 deleted from function.intval by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-214143@lists.php.net to get a copy of this message
Note Submitter: adspeed.com ---- Say you have a string $s="3763328634" to be used as a key into the database, intval() this string will result in a different,smaller number (depends on the machine/OS). To keep the number intact but as an int/long type, do $s +=0; instead.

« previous php.notes (#214143) next »