note 98014 deleted from function.is-numeric by danbrown
| From: | danbrown@php.net | Date: | Thu, 20 May 2010 16:45:59 +0000 |
| Subject: | note 98014 deleted from function.is-numeric by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-169467@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
In addition to dustout at gmail dot com code example, just spare the if and reduce the two return
statements into one:
<?php
function is_hex($hexValue){
return (bool) ($hexValue == dechex(hexdec($hexValue));
}
?>