lets say i have
$num1 = 0;
$num2 = 1.00;
$num3 = 1.2;
is there a php function that will convert int or double/float to usa dollar currency?
so the output should be
$num1 => 0.00;
$num2 => 1.00; //note this will stay same
$num3 => 1.20;
i found this function on google
setlocale(LC_MONETARY, 'en_US');
money_format($num3);
but it say its a "Call to undefined function money_format()"