title: single quote JS encodeuri vs PHP rawurlencode
body: <p>I'm trying to imitate a POST request made by AJAX in PHP with cURL.</p>
  
  <p>One thing I noticed, why does PHP escapes the single quote as <code>%27</code> while JS's encodeuricomponent leaves it like it is?</p>
  
  <p>Is there really a function in PHP that's actually THE SAME as the JS one?</p>