I'm trying to do a string replace on text in a variable called $mastercategory.
Let's say $mastercategory contains 'Blouses & Shirts'.
I run the following code:
$new_mastercategory = str_replace('&', 'and', $mastercategory);
This gives $new_mastercategory a result of:
Blouses & Shirts
I can't for the life of me figure out whey the & is in there?!
Can anyone give some advice? I'd really appreciate it, ta!