{ Snipperize } /format
Snippets about format
Clean Special Characters
If you are looking for the PHP special characters clean function then this post might be useful for you. This function can used to remove special character as well as able to replace specific character with other equivalent character or string.
PHP / clean, character, format / by ThePeppersStudio (221 days, 3.21 hours ago)
URL Normalization Routines
urlnorm.py - URL normalisation routines urlnorm normalises a URL by; * lowercasing the scheme and hostname * taking out default port if present (e.g., http://www.foo.com:80/) * collapsing the path (./, ../, etc) * removing the last character in the hostname if it is '.' * unquoting any %-escaped characters Available functions: norms - given a URL (string), returns a normalised URL norm - given a URL tuple, returns a normalised tuple test - test suite
Python / urlparse, format, link, url / by ThePeppersStudio (225 days, 4.15 hours ago)
Format Web Address To a Proper URL
this function formats a web address for use in a link. echo formatWebAddress("google.com"); http://www.google.com/
PHP / url, format, link / by ThePeppersStudio (230 days, 7.28 hours ago)
Time() Format - How Many Seconds/Minutes/Hours/Days/Years/Decads Ago
This snippet will format time() into something a bit more user friendly. Title explains it better.
PHP / time, ago, format / by ThePeppersStudio (240 days, 3.12 hours ago)
- 1
- Home
- New Snippet
- Languages
-

