php first instance string
<p>I have a string, say:
www.google.com/tomato.mdm</p>

<p>I need to replace tomato with tomaton (add n to it).  My method is to find the . then replace it with n.  .  This didn't work.  Tomato can be many differeny words, so I can't just search for that either...</p>

<p>Is their any way to solve this?</p>

<p>I thought about only replacing it at the first instance from the end, but cannot find a function to do this in the php manuel.</p>
