PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information

CatsWhoCode.com: 10 super useful PHP snippets

Note: This article was originally published at PHPDeveloper on 5 April 2011.
PHPDeveloper

The CatsWhoCode.com 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