Source: Darren's Outpost ( from this entry , this fragment itself )

  1. // This won't work in PHP < 5
  2. function foo(&$bar = 'default value here'){ ... };