title: Cannot retrieve parenthesis value from url in php?
body: <p>I am having a problem a problem with retrieving parenthesis value from url. I am developing a PHP project using CodeIgniter Framework.</p>
  
  <p>I have a mvc url format like this - <a href="http://localhost/controller/action/id/name" rel="nofollow noreferrer">http://localhost/controller/action/id/name</a></p>
  
  <p>Then I passed the value like this - <a href="http://localhost/controller/action/2/test%20(test)" rel="nofollow noreferrer">http://localhost/controller/action/2/test%20(test)</a></p>
  
  <p>And like this as well - Then I passed the value like this:</p>
  
  <blockquote>
    <p><a href="http://localhost/controller/action/2/test+(test)" rel="nofollow noreferrer">http://localhost/controller/action/2/test+(test)</a></p>
  </blockquote>
  
  <p>So my action function is like this with parameters-</p>
  
  <pre><code>function action($id,$name)
  {
     $name = urldecode($name)
     //I find the index of start "t"
     echo strpos($name,'t'); //this is working find
     echo strpos($name,'('); // this is outputing nothing
     echo $name; // this is outputing test (test)
  }
  </code></pre>
  
  <p>What is the problem ? Why cannot I find index of "(". Actually I and retrieving record from database using that value. But parenthesis is not working well with php. I showing output correctly. But cannot find index of it.</p>