I have an array of fractions:
$fractions = array('1/8', '1/4', '1/2');
Is there any way that I can get PHP to actually perform the division to get a decimal value?
Something like:
foreach($fractions as $value) {
$decimal = [the result of 1 divided by 8, or whatever the current fraction is in value];
}
eval()