title: str_replace
body: <p>Current code only replace the spaces to dash (-)</p>
  
  <pre><code>$url = str_replace(' ','-',$url);
  </code></pre>
  
  <p>I want only letters, numbers and dash (-) allowed on the URL.</p>
  
  <p>Let me know the tricks.</p>