preg_match for Hexadecimal Strings


/ Published in: PHP
Save to your folder(s)

Figure out if the string possesses only hexadecimal characters in the string. If not, fail. Remember, white spaces are not hexadecimal, so make sure you trim() your strings before you send it in or explode your string.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.