title: How to encode and decode / character with PHP
body: <p>In my dynamically generated website sometimes parts of my URLs contain a / character:</p>
  
  <p>Serena Williams/Venus Williams-Andrea Hlavackova/Lucie Hradecka</p>
  
  <p>And, naturally, the URL returns a 404 error as the / sign is considered a folder so the URL doesn't exist.</p>
  
  <p>What would be the PHP function to encode and later decode the string which contains a / character?</p>