PHP number format indian currency

Created at 17-Apr-2021 , By samar

PHP number format indian currency

Good day, guys. In this post, we’ll look at how to solve the "PHP number format indian currency" programming puzzle.

  • Number format indian currency in php

    $fmt = new NumberFormatter('en_IN', NumberFormatter::CURRENCY);
    echo $fmt->formatCurrency(1234567.891234567890000, "INR")."\n";
    ₹ 12,34,567.89

    This code snippet converts a number into a indian currency number format. Here we use the formatCurrency() method on  NumberFormatter class which is an in-build in php.

Back to code snippet queries related php

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

Don't forget to share this article! Help us spread the word by clicking the share button below.

We appreciate your support and are committed to providing you valuable and informative content.

We are thankful for your never ending support.