note 96508 modified in function.is-numeric by danbrown
| From: | danbrown@php.net | Date: | Wed, 03 Mar 2010 14:35:19 +0000 |
| Subject: | note 96508 modified in function.is-numeric by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-166570@lists.php.net to get a copy of this message | ||
I had troubles when using this as an is_hex function, if anyone else runs into troubles here is an
alternative approach. Not a very efficient one, but it worked quite well for what i needed it for.
<?php
function is_hex($hexValue){
if($hexValue == dechex(hexdec($hexValue)))
return true;
return false;
}
?>
--was--
I had troubles when using this as an is_hex function, if anyone else runs into troubles here is an
alternative approach. Not a very efficient one, but it worked quite well for what i needed it for.
function is_hex($hexValue){
if($hexValue == dechex(hexdec($hexValue)))
return true;
return false;
}
http://php.net/manual/en/function.is-numeric.php