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 declare(strict_types=1); | |
// 消費税10% | |
const TAX = 0.1; | |
// 商品単体の値段を計算する | |
function calculate(int $price, int $count): float | |
{ | |
return $price*$count*(1+TAX); | |
} |
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 declare(strict_types=1); | |
$property_list = [ | |
[ | |
"name" => "物件A", | |
"price" => 50000000, | |
"income" => 5000000, | |
"expenses" => 1000000, | |
"purchaseExpenses" => 3000000, | |
], |