I'm looking to improve my PHP coding and am wondering what PHP-specific techniques other programmers use to improve productivity or workaround PHP limitations.
Some examples:
Class naming convention to handle namespaces:
Part1_Part2_ClassNamemaps to filePart1/Part2/ClassName.phpif ( count($arrayName) ) // handles $arrayName being unset or emptyVariable function names, e.g.
$func = 'foo'; $func($bar); // calls foo($bar);