News Feed
Jobs Feed
Sections




News Archive
CatsWhoCode.com:
10 life-saving PHP snippets
July 20, 2010 @ 11:47:35

New from the CatsWhoCode.com site today there's a list of ten code snippets from Jean-Baptiste Jung that could be "life-saving" in your development.

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, I'm going to show you 10 extremely useful PHP code snippets to add to your web developer toolbox.

They're not amazing, but that can be very handy in the right situations - things like:

  • Highlight specific words in a phrase
  • Automatic password creation
  • Calculate age using date of birth
  • Maintenance mode with PHP
  • Add (th, st, nd, rd, th) to the end of a number
0 comments voice your opinion now!
code snippet toolbox


blog comments powered by Disqus

Similar Posts

Brian Moon's Blog: PHP generated code tricks

Perforce Software: Seven Pillars of Pretty Code

Chad Kieffer's Blog: Speed up PHP development in Eclipse PDT with Templates and Snippets

Gonzalo Ayuso's Blog: How to use eval() without using eval() in PHP

Jani Hartikainen's Blog: A simple way to make your code better: Stop adding more parameters


Community Events









Don't see your event here?
Let us know!


development composer introduction podcast functional object code api event conference zendframework2 language tool example interview release testing opinion community framework

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework