Hi I am echoing out a field name which is going to be part of a url. However the name itself has uppercase lettyers in it so I have made them all lower on the echo. There is however a space between words. Is there a way I can also replace any spaces here with a hiphen on the echo?
<?php echo strtolower($row["myfield"]); ?>