PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
You could use something like preg_replace() to replace everything between 'brand=' and '&'. Or you could explode() on '&' and then '=' and then reassemble. There are probably a couple other ways to do it as well.