I have the following code:
$url = @mysql_fetch_array(mysql_query("SELECT url FROM dl LIMIT 1"));
$url = $url[0];
but I would rather use it as:
$url = @mysql_fetch_array(mysql_query("SELECT url FROM dl LIMIT 1"))[0];
why do I get error for the second one because seems right syntax to me? Or do I miss something?
PHP Parse error: syntax error, unexpected '[' in settings.php on line 52