Plug text into a specific part of a string
<p>I'm trying to change passwords in user text files via PHP. I want to plug the <code>$pass</code> string into the <code>$myfile</code> variable. Here's what <code>$myfile</code> looks like:</p>

<pre><code>myname/mypass/myemailaddress/myuserlevel
</code></pre>

<p>So I have each section separated with a <code>/</code> character. I want to replace <code>mypass</code> with the <code>$pass</code> string.</p>
