View Single Post
Old 03-20-2010, 11:10 PM   #7 (permalink)
cerealgirl
The Visitor
 
Join Date: Mar 2010
Posts: 1
Thanks: 0
cerealgirl is on a distinguished road
Default

And isn't thisfunction a shining example of why we should comment our code and select logical function names...

Quote:
Originally Posted by Dave View Post
Could someone briefly explain this function?

PHP Code:
function l($var
{
    global 
$l;
    return 
$l[$var];

Thanks!
Ummm, I'm pretty sure it's a variable variable - basically a way to have a dynamically named variable. Here they are in the manual http://php.net/manual/en/language.va...s.variable.php
Cool though they may be, I never use variable variables, because they're a bit confusing - they save a few lines of code but lose maintainability and readability IMHO.
cerealgirl is offline  
Reply With Quote