title: How to encode a string in base64 to be used in a URL?
body: <p>I need to attach a confirmation code that can hold several parts and almost <code>random</code> characters, to an email.
  The idea is to print the URL with that code in the message body (in HTML).</p>
  
  <p>Is the <code>base64_encode()</code> function enough to make it safe to be parsed by the browser ?</p>