Profile
Achievement
duniyadnd's Recent PHP Snippets
- All /
« Prev 1 Next »
Alternative to
[http://snipplr.com/view/12616/strip-url-to-its-domain-name/](http://snipplr.com/view/12616/strip-url-to-its-domain-name/, "this snippet"), as it didn't come out clearly in the comments.
Update - Edited based on gdvickery's commen...
3
905
posted 15 years ago by duniyadnd
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.
0
1000
posted 15 years ago by duniyadnd