$navcat = strtoupper($navcat);
$stringrep = "&";
$navcat = str_replace("&", $stringrep, $navcat);
Probably making this way to complicated.
I need to take a string that sometimes has ampersands in it and make it uppercase. However, I then want bring the ampersand code & back down to lower case. I dont have a problem replacing the uppercase & with straight text or numbers, but I do with &
I imagine it may have something to do with escaping characters, but what exactly?
Any help would be appreciated 'cos I have given this silly bit of code more time than it deserves!