<p>My php is weak and I'm trying to change this string:</p>

<pre><code>http://www.example.com/backend.php?/c=crud&amp;m=index&amp;t=care
                                   ^
</code></pre>

<p>to be:</p>

<pre><code>http://www.example.com/backend.php?c=crud&amp;m=index&amp;t=care
                                  ^
</code></pre>

<p>removing the <code>/</code> after the <code>backend.php?</code>. Any ideas on the best way to do this?</p>

<p>Thanks!</p>

```
```
$str = preg_replace('/\?\//', '?', $str);
```
```
Edit: See CMS' answer. It's late, I should know better.