News for hackers. Stuff that matters.
Re:PHP Tips and Tricks - Codular by FuzzyDunlop on Sunday July 29, 2012 @06:11PM (#4309916)
I think it would have been worth pointing out the slightly more readable syntax for variable variables (and other metaprogramming features within PHP):

    ${$var};
    ${$name.'Controller'}->function();
    $something->{$functionName}();
With all the appropriate warnings, of course. For a start, don't find excuses to implement this style of code. You almost certainly don't need it for a basic website.

There are no comments on this comment yet.