> I have a suggestion for upcoming PHP6 as it's a major version change. I > suggest a possibility to use this (example): > > $host = parse_url('http://someurl.com')['host']; > > instead of > > $host = parse_url('http://someurl.com'); > $host = $host['host'];
I can't see any real benefit of this change apart from a WTF factor... its possible i'm missing something though! Whats the benefit apart from saving a line of code? Why not just skip the second line and use $host['host'] instead of copying it to $host ? Regards Marco