diff --git a/language/oop5/basic.xml b/language/oop5/basic.xml index fcb5db4369..c5f863029e 100644 --- a/language/oop5/basic.xml +++ b/language/oop5/basic.xml @@ -1,7 +1,7 @@ - - + + クラスの基礎 @@ -380,6 +380,8 @@ bool(true) format('Y'); +// PHP 8.4.0 以降、囲む括弧は省略可能です。 +echo new DateTime()->format('Y'); ?> ]]>