Profile
Achievement

duniyadnd's Recent Snippets
- All /
« Prev 1 Next »
I'll never learn how to use this Markdown system. Anyway, here is the fixed code based on my comment on the following page:
http://snipplr.com/view/14206/replace-spaces-with-underscores/
I'm sorry, I don't mean to hijack the code. :(
0
963
posted 15 years ago by duniyadnd
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
1190
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
1280
posted 16 years ago by duniyadnd