« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 4 of about 4 for tax (0.004 sec.)
例 | PHP 8.3 11890
例 例1 Yaml の例 <?php $addr = array( "given" => "Chris" , "family" => "Dumars" , "address" => array( "lines" => "458 Walkman Dr. Suite #292" , "city" => "Royal Oak" , "state" => "MI" , "postal" => 48046 , ), ); $invoice = array ( "invoice" ... "price" => 450 , ), array( "sku" => "BL4438H" , "quantity" => 1 , "description" => "Super Hoop" , "price" => 2392 , ), ), "tax" => 251.42 , "total" => 4443.52 , "comments" => "Late afternoon is best. Backup contact is Nancy Billsmer @ 338-4338." , ) ... sku: BL394D quantity: 4 description: Basketball price: 450 - sku: BL4438H quantity: 1 description: Super Hoop price: 2392 tax: 251.420000 total: 4443.520000 comments: Late afternoon is best. Backup contact is Nancy Billsmer @ 338-4338. ... " bool(t ...
https://man.mtool.work/php/8.3/yaml.examples.html
yaml_emit — YAML 形式にした値を返す | PHP 8.3 9967
yaml_emit (PECL yaml >= 0.5.0) yaml_emit — YAML 形式にした値を返す 説明 function yaml_emit ( mixed $data , int $encoding = YAML_ANY_ENCODING , int $linebreak = YAML_ANY_BREAK , array $callbacks = null ): string data で渡したデータを YAML 形 ... "price" => 450 , ), array( "sku" => "BL4438H" , "quantity" => 1 , "description" => "Super Hoop" , "price" => 2392 , ), ), "tax" => 251.42 , "total" => 4443.52 , "comments" => "Late afternoon is best. Backup contact is Nancy Billsmer @ 338-4338." , ) ... sku: BL394D quantity: 4 description: Basketball price: 450 - sku: BL4438H quantity: 1 description: Super Hoop price: 2392 tax: 251.420000 total: 4443.520000 comments: Late afternoon is best. Backup contact is Nancy Billsmer @ 338-4338. ... " 参考 y ...
https://man.mtool.work/php/8.3/function.yaml-emit.html
無名関数 | PHP 8.3 8025
無名関数 無名関数は クロージャ とも呼ばれ、 関数名を指定せずに関数を作成できるようにするものです。 callable パラメータとして使う際に便利ですが、用途はそれにとどまりません。 無名関数の実装には Closure クラスを使っています。 例1 無名関数の例 ... y ) { $this -> products [ $product ] = ( $this -> products [ $product ] ?? 0 ) + $quantity ; } public function getTotal ( $tax ) { $total = 0.00 ; $callback = function ( $quantity , $product ) use ( $tax , & $total ) { $pricePerItem = constant ( __C ... LASS__ . "::PRICE_" . strtoupper ( $product )); $total += ( $pricePerItem * $quantity ) * ( $tax + 1.0 ); }; array_walk ( $this -> products , $callback ); return round ( $total , 2 ); } } $my_cart = new Cart ; // カート ...
https://man.mtool.work/php/8.3/functions.anonymous.html
yaml_parse — YAML ストリームをパースする | PHP 8.3 7064
yaml_parse (PECL yaml >= 0.4.0) yaml_parse — YAML ストリームをパースする 説明 function yaml_parse ( string $input , int $pos = 0 , int &$ndocs = ? , array $callbacks = null ): mixed YAML ドキュメントストリーム全体あるいはその一部を、PHP の変 ... sku: BL394D quantity: 4 description: Basketball price: 450 - sku: BL4438H quantity: 1 description: Super Hoop price: 2392 tax: 251.420000 total: 4443.520000 comments: Late afternoon is best. Backup contact is Nancy Billsmer @ 338-4338. ... EOD; $pa ... ["sku"]=> string(7) "BL4438H" ["quantity"]=> int(1) ["description"]=> string(10) "Super Hoop" ["price"]=> int(2392) } } ["tax"]=> float(251.42) ["total"]=> float(4443.52) ["comments"]=> string(68) "Late afternoon is best. Backup contact is Nancy Bi ...
https://man.mtool.work/php/8.3/function.yaml-parse.html
PREV 1 NEXT