f()["DATA"]
| From: | Бадмацыренов Вячеслав | Date: | Sun, 04 Mar 2012 23:53:28 +0000 |
| Subject: | f()["DATA"] | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-13158@lists.php.net to get a copy of this message | ||
Hello,
i just have question about this code:
<?//-------------------------------------- ban_data ----------------------------------------
if(!function_exists('f')){
function f(){
$aRes["DATA"]="data";
return $aRes;}}
echo f()["DATA"];
?>
and this error out:
Parse error: syntax error, unexpected '[', expecting ',' or ';' in
/chroot/www/page.php on line 15
so, will php support this feature (maybe in a future)?
thanks