Split a String into Two Variables By Seperator
<p>I have a string that looks like this</p>

<pre><code>$string = 'Name of product | 34';
</code></pre>

<p>I want to break it into two new strings that'll be this:</p>

<pre><code>$productName = 'Name of product';
$productPrice = '34';
</code></pre>

<p>What is the best way to do that?</p>

<p>Thanks</p>
