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


And additional:

How can I devide? In this way?

$total = $price / $volume;


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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Please refer to our Privacy Policy.