<?php
$money= -20
echo money_format('%(19.2n',$money).'Only';
?>
I have tried using money_format
to avoid negative sign in php,the above code removes the negative sign but it adds brackets to the given values.I want to eliminate the brackets as well as the negative sign.For instance changing -20
to 20.00
.Any help on how to fix this.Thanks