PHP6 new syntax use suggestion

From: Date: Fri, 23 May 2008 13:35:55 +0000
Subject: PHP6 new syntax use suggestion
Groups: php.internals 
Request: Send a blank email to internals+get-37823@lists.php.net to get a copy of this message
Hello, 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']; Now it returns a syntax error. Have a nice day, A

« previous php.internals (#37823) next »