News Feed

News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way
10 super useful PHP snippets
April 05, 2011 @ 08:38:10

The blog has a new post today with what they call super useful PHP snippets that could help you out in a pinch.

Having the right code snippet at the right time can definitely be a life saver for web developers. Today, I've compiled 10 really awesome PHP code snippets that will, I hope, be very helpful in your forthcomming developments.

Their list of ten includes bits of code for:

  • Super simple page caching (file-based)
  • Convert seconds to time (years, months, days, hours...)
  • Get current weather using Google API
  • Get latitude and longitude from an address
  • Save url to PDF
2 comments voice your opinion now!
snippet useful helpful

blog comments powered by Disqus

Similar Posts 8 useful code snippets to get started with WordPress 3.0 9 Extremely Useful and Free PHP Libraries

Brandon Savage's Blog: "Micro" Optimizations That Matter

Volker Dusch: If it's not written in PHP it's irrelePHPant! 10 life-saving PHP snippets

Community Events

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

list community tool laravel voicesoftheelephpant language introduction interview security framework conference series podcast symfony version release artisanfiles composer library opinion

All content copyright, 2014 :: - Powered by the Solar PHP Framework