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:

https://vk.com/search?

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 '§'? (

    1 answer 1

    The mnemonic of the "§" symbol ( paragraph sign ) - & sect; , therefore, the combination of characters in the URL gives exactly this result. Try to defeat the same weapon - instead of the "&" symbol, use its mnemonic - & amp;

    PS So long did not guess, here's an example