Modify numbers inside a string PHP
<p>I have a string like this:</p>

<pre><code>$string = "1,4|2,64|3,0|4,18|";
</code></pre>

<p>Which is the easiest way to access a number after a comma?</p>

<p>For example, if I have:</p>

<pre><code>$whichOne = 2;
</code></pre>

<p>If <code>whichOne</code> is equal to <code>2</code>, then I want to put <code>64</code> in a string, and add a number to it, and then put it back again where it belongs (next to <code>2,</code>)</p>

<p>Hope you understand!</p>
