{ Snipperize } /format

Snippets about format

Here are the latest snippets talking about format. Please choose your favorite one or add a new one.

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 (212 days, 20.41 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 (216 days, 21.36 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 (222 days, 0.49 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 (231 days, 20.32 hours ago)

  • 1