From 6db91e01931046dfd51c6b5a36765be0e402033f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=86=E3=82=AF=E3=83=8B=E3=82=AB=E3=83=AB=E8=AB=8F?= =?UTF-8?q?=E8=A8=AA=E5=AD=90?= Date: Fri, 22 Apr 2022 09:17:38 +0900 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E5=88=9D=E3=82=B3=E3=83=9F=E3=83=83?= =?UTF-8?q?=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + example.php | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 README.md create mode 100644 example.php 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) + ]); +?>