How to remove exact string from a string?
<p>I have a bunch of ids and some value inside a table in  textual form as below</p>

<pre><code>456-678-978=&gt;6;
567-734-565=&gt;8;
</code></pre>

<p>where <code>474-484-735</code> is some ID followed by => where 8 is quantity and ; is where a single entity ends.</p>

<p>Now using preg_replace and str_replace I am not able to replace a full string such as <code>567-734-565=&gt;8;</code> and just wanted to receive the output with only <code>456-678-978=&gt;6;</code> as the data.</p>

<p>How should I replace an exact set of strings to some null or It could be possible to trim the entire string?</p>

<p>Any help is most appreciated</p>