In order to be efficient, a web developer should have a toolbox with code snippets he can use and reuse when needed. In this article, Jean-Baptiste Jung is going to show you 10 extremely useful PHP code snippets to add to your web developer toolbox.
- Highlight specific words in a phrase
- Get your average Feedburner subscribers
- Automatic password creation
- Compress multiple CSS files
- Get short URLs from Twitter
- Calculate age using date of birth
- Calculate execution time
- Maintenance mode with PHP
- Prevent js and css files from being cashed
- Add (th, nd, rd, th) to the end of a number
Comments
Be the first to write a comment
You must me logged in to write a comment.