I'm needing to replace ampersand (&) with the word and in URL's and am already replacing spaces with hyphens using php str_replace like below:-
<?php echo strtolower(str_replace(' ', '-', $value)) ?>
Am I able to modify this to add the replacement of ampersands as well by using an array perhaps?