How Do I replace Specific Text in PHP
<p>I have some data in the following format.</p>

<pre><code>Orange - $3.00
Banana - $1.25
</code></pre>

<p>I would like to print this as only as follows:</p>

<pre><code>Orange
Banana
</code></pre>

<p>I tried using following code in a loop but the data may have 0 in other places as well. So if I can find 0 only at the end for a specific line.</p>

<pre><code>$pos=strpos($options, "0");
$options = substr($options, 0, $pos)."\n";
</code></pre>

<p>Any ideas?</p>
