note 96508 added to function.is-numeric
| From: | dustout at gmail dot com | Date: | Wed, 03 Mar 2010 02:38:43 +0000 |
| Subject: | note 96508 added to function.is-numeric | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-166548@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.
function is_hex($hexValue){
if($hexValue == dechex(hexdec($hexValue)))
return true;
return false;
}
----
Server IP: 69.147.83.197
Probable Submitter: 70.64.121.232
----
Manual Page -- http://www.php.net/manual/en/function.is-numeric.php
Edit -- https://master.php.net/note/edit/96508
Del: integrated -- https://master.php.net/note/delete/96508/integrated
Del: useless -- https://master.php.net/note/delete/96508/useless
Del: bad code -- https://master.php.net/note/delete/96508/bad+code
Del: spam -- https://master.php.net/note/delete/96508/spam
Del: non-english -- https://master.php.net/note/delete/96508/non-english
Del: in docs -- https://master.php.net/note/delete/96508/in+docs
Del: other reasons-- https://master.php.net/note/delete/96508
Reject -- https://master.php.net/note/reject/96508
Search -- https://master.php.net/manage/user-notes.php