I'm new to programming, you could help me with my question below:
I have the line below where I replace the Blank Space "" for dash (-)
$url = addslashes( 'mysite.com/pages/'.strtolower(str_replace(' ','-', $q)) ).'.html';
but how do I put it on the same line as the code to also replace the question mark (?) And Ampersand (&) for empty ""
I tried the way below but it didn't work, I'm missing something
$url = addslashes( 'mysite.com/pages/'.strtolower(str_replace('?','',(str_replace('&','',(str_replace(' ','-', $q)))))) ).'.html';