Jump to content

How to add currency format


Michael Pusch

Recommended Posts

Just playing with the banner field and php bases formating and have a little question.

$price = $CustomFields->fieldValue('jr_price',$entry);
$volume = $CustomFields->fieldValue('jr_volume',$entry);
$total = $price * $volume;
return $total;

How can I put in the currency format like this:

1200,- €

instead of

1200

And additional:

How can I devide? In this way?

$total = $price / $volume;

 

Edited by Michael Pusch
Link to post
×
×
  • Create New...