note 55301 added to function.intval
| From: | adspeed dot com at osu1 dot php dot net | Date: | Fri, 29 Jul 2005 15:32:15 +0000 |
| Subject: | note 55301 added to function.intval | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-92729@lists.php.net to get a copy of this message | ||
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.
----
Submitter IP: 64.246.30.37
----
Manual Page -- http://www.php.net/manual/en/function.intval.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+55301
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55301&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55301&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55301&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55301&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55301&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55301&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+55301&report=yes
Search -- http://master.php.net/manage/user-notes.php