2 Obscure PHP Functions Blogpost Cover

2 Obscure PHP Functions

Do note that these 2 functions below are built-in PHP functions supported in 5.3=<

GOTO

There are lots of jokes about the GOTO function in other languages, but in PHP, it can be a really useful exception catching mechanism.

  

Date Parsing

12-03-11 could mean 3 different dates:

  1. December 3, 2011
  2. March 12, 2011
  3. March 11, 2012

It is better to be really specific when working with date and time.

  

Leave a comment:

Top