Formats a price for a particular currency.

Public

For Drupal Commerce price field.

</> CopyGet raw version
php
  1. $amount = $price_value;
  2. $currency_code = 'USD';
  3. //Formatted price
  4. $price = commerce_currency_format($amount, $currency_code);