String replace PHP
<pre><code>Array {
    [0] =&gt; http://abc.com/video/ghgh23;
    [1] =&gt; http://smtech.com/file/mwerq2;
}
</code></pre>

<p>I want to replace the content between <code>/</code>sometext<code>/</code> from the above array. Like I want to replace <code>video</code>, <code>file</code> with <code>abc</code>.</p>
