note 17091 deleted from ref.ctype by jimw
| From: | jimw@php.net | Date: | Fri, 14 Dec 2001 21:16:32 +0000 |
| Subject: | note 17091 deleted from ref.ctype by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-22822@lists.php.net to get a copy of this message | ||
better way than
if ( $var != "0" && $var / 1 == 0 ) { }
is
if ( $var == (int) $var ) { }
faster and simpler :) you may want === instead, thats upto you but then you'd be better doing
an is_long on the var