Strip everything in string before the second “-” character that occurs? <p>I found solution for oposite:"Strip everything in string after the second “-” character that occurs?"</p> <pre><code>$newstr = substr($str, 0, strpos($str, '-', strpos($str, '-')+2)); </code></pre> <p>Now, I need solution for "BEFORE" the second "-":</p> <pre><code>Today is - Friday and tomorrow is - Saturday </code></pre> <p>To be:</p> <pre><code>Saturday </code></pre> <p>I would like to do this with strstr(), if it is possible.</p> <p>I tried something like:</p> <pre><code>$newstr = substr($str, 0, strstr($str, '-', strstr($str, '-')+2)); </code></pre> <p>Didn't worked.</p>