I need to display a fraction in PHP. For that I wrote:
$a = 3;
$b = 2;
$c = "$a/$b";
echo $c; // this displays 3/2 but on the other hand I want to multiply $c by an integer;
echo $c * 2; // this shows me an error
this is what shows me : ( ! ) Notice: A non well formed numeric value encountered
Can someone help me please?