<?php
$region = 93;
$cat = 'dacha';
$urls = ['1', '2', '3', 'abc'];
$projects['realty' . $region . '_' . $cat . '_search.xml'] = [[
'type' => 'urls',
'urls' => [
'http://dacha.ngs93.ru/' => 1,
'http://dacha.ngs93.ru/sell/' => 0.9,
'http://dacha.ngs93.ru/buy/' => 0.3,
'http://dacha.ngs93.ru/rent_available/' => 0.9,
'http://dacha.ngs93.ru/rent_required/' => 0.3,
],
]
]
$project = &$projects['realty' . $region . '_' . $cat . '_search.xml'];
var_export($projects);
- Output for 5.4.0 - 5.4.28
- Parse error: syntax error, unexpected '$project' (T_VARIABLE) in /in/ovUmM on line 16
Process exited with code 255. - Output for 5.3.0 - 5.3.28
- Parse error: syntax error, unexpected '[' in /in/ovUmM on line 4
Process exited with code 255.
preferences:
180.71 ms | 1395 KiB | 65 Q