commit 6db91e01931046dfd51c6b5a36765be0e402033f Author: テクニカル諏訪子 Date: Fri Apr 22 09:17:38 2022 +0900 最初コミット diff --git a/README.md b/README.md new file mode 100644 index 0000000..70abb69 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +```php example.php``` diff --git a/example.php b/example.php new file mode 100644 index 0000000..c249b71 --- /dev/null +++ b/example.php @@ -0,0 +1,16 @@ += 100000000 && $sum < 1000000000000) return round($sum/100000000, 1)."億円"; + else if ($sum >= 1000000000000) return round($sum/1000000000000, 1)."兆円"; + else if ($sum < 10000) return $sum."円"; + return round($sum/10000, 1)."万円"; + } + + print_r([ + manen(4000), + manen(27000), + manen(666098), + manen(257490303), + manen(7594923075683) + ]); +?>