note 104017 added to function.is-int
| From: | matthew at encke dot us | Date: | Tue, 17 May 2011 15:35:24 +0000 |
| Subject: | note 104017 added to function.is-int | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-179816@lists.php.net to get a copy of this message | ||
I have learned that you can really reduce the code written here to make it only one line function.
function is_really_int( $val ) {
return ( $val == (int)$val );
}
----
Server IP: 69.147.83.197
Probable Submitter: 186.32.221.157
----
Manual Page -- http://www.php.net/manual/en/function.is-int.php
Edit -- https://master.php.net/note/edit/104017
Del: integrated -- https://master.php.net/note/delete/104017/integrated
Del: useless -- https://master.php.net/note/delete/104017/useless
Del: bad code -- https://master.php.net/note/delete/104017/bad+code
Del: spam -- https://master.php.net/note/delete/104017/spam
Del: non-english -- https://master.php.net/note/delete/104017/non-english
Del: in docs -- https://master.php.net/note/delete/104017/in+docs
Del: other reasons-- https://master.php.net/note/delete/104017
Reject -- https://master.php.net/note/reject/104017
Search -- https://master.php.net/manage/user-notes.php