PHP - actually execute value of variable
<p>I have an array of fractions:</p>

<pre><code>$fractions = array('1/8', '1/4', '1/2');
</code></pre>

<p>Is there any way that I can get PHP to actually perform the division to get a decimal value?</p>

<p>Something like:</p>

<pre><code>foreach($fractions as $value) {
    $decimal = [the result of 1 divided by 8, or whatever the current fraction is in value];
}
</code></pre>
