note 98015 deleted from function.is-numeric by danbrown

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
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))); 
} 
?>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.