Created
November 30, 2020 01:20
-
-
Save ihzarizkyk/322de30241450705b2abcfa12a05a7b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function format_rupiah($uang) | |
{ | |
$nominal = "Rp.".number_format($uang,2,',','.'); | |
return $nominal; | |
} | |
echo format_rupiah(100000); | |
// HASIL : RP.100.000,00 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment