Hi,

The following is well worth a read:

http://www.sitepoint.com/blogs/2009/08/13/are-php-namespaces-bad/

One further thing.  How many of you use list() regularly to unpack 
return values from a function (http://nz.php.net/list)?

e.g.

function getnames(){
    ...
    return array($fname, $lname);
}

list($fname, $lname) = getnames();

In Python the syntax is even cleaner but list() is not too much 
scaffolding to get the benefits in PHP.  I am amazed I hadn't come 
across it in my reading to date.


All the best, Grant

--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to