Code:
$str = 'https://vk.com/search?c[age_to]=18&c[city]=8139&c[country]=1&c[name]=1&c[online]=1&c[school]=474359&c[section]=people'; echo '<br>'.$str.'<br>' ; $str = str_replace(array('https://vk.com/search?',']','c['), '', $str); echo '<br>'.$str.'<br>' ;
Result:
age_to = 18 & city = 8139 & country = 1 & name = 1 & online = 1 & school = 474359§ion = people
See the last variable. Why is part of it gone and turned into '§'? (