{"id":5862,"date":"2023-03-05T17:18:34","date_gmt":"2023-03-05T08:18:34","guid":{"rendered":"https:\/\/www.prime-strategy.co.jp\/column\/?p=5862"},"modified":"2026-02-17T02:04:35","modified_gmt":"2026-02-16T17:04:35","slug":"php%e9%87%8d%e9%8e%ae%e3%81%ae%e5%bb%a3%e5%b7%9d%e6%b0%8f%e3%81%ae%e3%82%b3%e3%83%a9%e3%83%a0%e3%80%8c%e3%81%a4%e3%81%84%e3%81%ab-php-8-3%e3%81%ab%e5%90%91%e3%81%91%e3%81%9f%e9%96%8b%e7%99%ba%e5%a7%8b","status":"publish","type":"post","link":"https:\/\/kusanagi.tokyo\/column\/archives\/column_5862","title":{"rendered":"PHP\u91cd\u93ae\u306e\u5ee3\u5ddd\u6c0f\u306e\u30b3\u30e9\u30e0\u300c\u3064\u3044\u306b PHP 8.3\u306b\u5411\u3051\u305f\u958b\u767a\u59cb\u307e\u308b\u300d\uff08\u7b2c29\u56de\uff09"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u30002023\u5e74\u304c\u59cb\u307e\u308a\uff0c\u65e92\u30f6\u6708\u304c\u305f\u3068\u3046\u3068\u3057\u3066\u3044\u307e\u3059\uff0e\u6628\u5e7412\u6708\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305fPHP 8.2\u306f\uff0c\u30d0\u30b0\u4fee\u6b63\u7248\u306e\u30ea\u30ea\u30fc\u30b9\u304c\u307b\u307c\u6bce\u67081\u56de\u30ea\u30ea\u30fc\u30b9\u3055\u308c\uff0c\u7dad\u6301\u30d5\u30a7\u30fc\u30ba\u306b\u79fb\u884c\u3057\u3066\u3044\u307e\u3059\uff0e\u307e\u305f\uff0c\u6b21\u306e\u30de\u30a4\u30ca\u30fc\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3042\u308b PHP 8.3\u306b\u5411\u3051\u305f\u958b\u767a\u304c\u5f90\u3005\u306b\u9032\u307f\u3064\u3064\u3042\u308a\u307e\u3059\uff0e\u4eca\u56de\u306f\uff0cPHP 8.3\u306b\u5411\u3051\u3066\u958b\u767a\u4e2d\u306e\u65b0\u6a5f\u80fd\u306e\u4e00\u90e8\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\uff0e<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">PHP 8.3\u306e\u958b\u767a\u72b6\u6cc1<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000PHP 8.3\u306e\u30ea\u30ea\u30fc\u30b9\u306b\u5411\u3051\u305f\u5de5\u7a0b\u306f\u307e\u3060\u6b63\u5f0f\u306b\u7acb\u3061\u4e0a\u304c\u3063\u3066\u304a\u3089\u305a\uff0c\u30ea\u30ea\u30fc\u30b9\u306b\u5411\u3051\u305f\u958b\u767a\u5de5\u7a0b\u3092\u7d71\u7387\u3059\u308b\u30ea\u30ea\u30fc\u30b9\u30de\u30cd\u30fc\u30b8\u30e3\u3082\u307e\u3060\u6c7a\u307e\u3063\u3066\u3044\u307e\u305b\u3093\uff0e\u305f\u3060\u3057\uff0c\u4f8b\u5e74PHP\u306e\u30de\u30a4\u30ca\u30fc\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30ea\u30ea\u30fc\u30b9\u304c11\u6708\u672b\u306b\u884c\u308f\u308c\u3066\u3044\u308b\u3053\u3068\u304b\u3089\uff0cPHP 8.3\u306e\u30ea\u30ea\u30fc\u30b9\u6642\u671f\u3082\u540c\u3058\u6642\u671f\u3067\u3042\u308b\u3068\u4e88\u60f3\u3055\u308c\u307e\u3059\uff0e\u307e\u305f\uff0c\u30c6\u30b9\u30c8\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30ea\u30ea\u30fc\u30b9\u306f\uff0c\u03b1\u7248\uff0c\u03b2\u7248\uff0c\u30ea\u30ea\u30fc\u30b9\u5019\u88dc\u7248\u3068\u9032\u3093\u3067\u3044\u304d\u307e\u3059\u304c\uff0c\u6700\u521d\u306e\u30c6\u30b9\u30c8\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u308b\u306e\u304c\uff0c\u4f8b\u5e746\u6708\u3054\u308d\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u306e\u3067\uff0c\u30ea\u30ea\u30fc\u30b9\u306b\u542b\u307e\u308c\u308b\u65b0\u6a5f\u80fd\u306e\u9aa8\u683c\u304c\u307b\u307c\u898b\u3048\u3066\u304f\u308b\u306e\u3082\u540c\u3058\u9803\u3068\u4e88\u60f3\u3055\u308c\u307e\u3059\uff0e\u30ea\u30ea\u30fc\u30b9\u30de\u30cd\u30fc\u30b8\u30e3\u306e\u9078\u6319\u306f\u4f8b\u5e745\u6708\u306b\u884c\u308f\u308c\u3066\u3044\u308b\u305f\u3081\uff0c\u3053\u306e\u9803\u304b\u3089\u958b\u767a\u304c\u672c\u683c\u5316\u3059\u308b\u3082\u306e\u3068\u601d\u308f\u308c\u307e\u3059\uff0e<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">PHP 8.3\u306e\u5168\u4f53\u50cf\u304c\u898b\u3048\u308b\u3088\u3046\u306b\u306a\u308b\u307e\u3067\u306b\u306f\u3042\u3068\u6570\u30f6\u6708\u304b\u304b\u308a\u307e\u3059\u304c\uff0c\u3059\u3067\u306bPHP 8.3\u306b\u542b\u307e\u308c\u308b\u4e88\u5b9a\u306e\u3044\u304f\u3064\u304b\u306e\u6a5f\u80fd\u304c\u63d0\u6848\u30fb\u63a1\u7528\u3055\u308c\uff0c\u3059\u3067\u306b\u5b9f\u88c5\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067\uff0c\u9806\u756a\u306b\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\uff0e<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a href=\"https:\/\/wiki.php.net\/rfc\/dynamic_class_constant_fetch\">\u52d5\u7684\u306a\u30af\u30e9\u30b9\u5b9a\u6570\u306e\u53d6\u5f97<\/a><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">PHP\u3067\u306f\uff0c$foo-&gt;$bar\u306e\u3088\u3046\u306b\u30af\u30e9\u30b9\u306e\u8981\u7d20\uff08\u30d7\u30ed\u30d1\u30c6\u30a3\uff0c\u30e1\u30bd\u30c3\u30c9\uff09\u3092\uff08\u5b9a\u7fa9\u304c\u52d5\u7684\u306b\u5909\u66f4\u3055\u308c\u308b\uff09\u5909\u6570\u3067\u53c2\u7167\u3059\u308b\u6a5f\u80fd\u304c\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u3059\uff0e\u3057\u304b\u3057\uff0c\u300c\u30af\u30e9\u30b9\u5b9a\u6570\u300d\u306b\u3064\u3044\u3066\u306f\u3053\u306e\u5909\u6570\u306b\u3088\u308b\u53c2\u7167\u304c\u5f93\u6765\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\uff0e<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u4f8b\u3048\u3070\uff0c\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\uff0e<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Foo {<br>&nbsp; &nbsp; public const NAME = \"Taro\";<br>}<br>$name = 'NAME';<br>echo Foo::{$name};<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u3053\u3053\u3067\u306f\uff0c\u30af\u30e9\u30b9Foo\u306e\u5b9a\u6570NAME\u3092\u5909\u6570$name\u306b\u3088\u308a\uff0cFoo::{$name}\u306e\u3088\u3046\u306b\u53c2\u7167\u3057\u3066\u3044\u307e\u3059\uff0e\u3053\u306e\u3088\u3046\u306a\u69cb\u6587\u306f\uff0cPHP 8.2\u307e\u3067\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u304a\u3089\u305a\uff0c\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\uff0e\u52d5\u7684\u306b\u5b9a\u7fa9\u3057\u305f\u5909\u6570\u306b\u3088\u308a\u30af\u30e9\u30b9\u5b9a\u6570\u3092\u53c2\u7167\u3059\u308b\u305f\u3081\u306b\u306f\uff0c\u4ee3\u308f\u308a\u306b constant ()\u95a2\u6570\u3092\u5229\u7528\u3057\u3066\uff0c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u53c2\u7167\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\uff0e<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo constant(\"Foo::$name\");<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">PHP 8.3\u4ee5\u964d\u3067\u306f\uff0c\u3088\u308a\u76f4\u89b3\u7684\u306b\u308f\u304b\u308a\u3084\u3059\u3044\u4ee5\u4e0b\u306e\u69cb\u6587\u306b\u3088\u308b\u30af\u30e9\u30b9\u5b9a\u6570\u306e\u53c2\u7167\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\uff0e<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo Foo::{$name};<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u540c\u69d8\u306b\uff0c\u5217\u6319\u578b\u306b\u304a\u3044\u3066\u3082case\u6587\u306e\u9078\u629e\u80a2\u306e\u5024\u3092 \u5217\u6319\u578b\u540d::{\u5909\u6570\u540d}-&gt;value\u306e\u3088\u3046\u306b\uff0c\u5909\u6570\u306b\u3088\u308a\u52d5\u7684\u306b\u53c2\u7167\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff0e\u4ee5\u4e0b\uff0c\u5177\u4f53\u7684\u306a\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\uff0e<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>enum Id: int {<br>&nbsp; &nbsp; case Taro &nbsp; = 1;<br>&nbsp; &nbsp; case Hanako = 2;<br>}<br>$id = 'Hanako';<br>echo Id::{$id}-&gt;value; \/\/ \u51fa\u529b: 2<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u3053\u3053\u3067\u306f\uff0c\u5217\u6319\u578bId\u3092\u6574\u6570\u5024\u3068\u3057\u3066\u5b9a\u7fa9\u3057\uff0c\u2019Hanako\u2019\u3092\u5909\u6570$id\u306b\u4ee3\u5165\u3057\u3066\uff0c\u53c2\u7167\u3057\u3066\u3044\u307e\u3059\uff0e<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u5f93\u6765\u306f\uff0c\u3053\u306e\u3088\u3046\u306a\u5909\u6570\u306b\u3088\u308b\u76f4\u63a5\u7684\u306a\u53c2\u7167\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u304a\u3089\u305a\uff0c\u524d\u8a18\u306e\u30af\u30e9\u30b9\u5b9a\u6570\u3068\u540c\u69d8\uff0c\u4ee5\u4e0b\u306e\u3088\u3046\u306bconstant\u95a2\u6570\u3092\u7528\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\uff0e<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo constant(\"Id::$id\")-&gt;value;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000PHP 8.3\u4ee5\u964d\u3067\u306f\uff0cId::{$id}-&gt;value \u306e\u3088\u3046\u306a\u53c2\u7167\u304c\u53ef\u80fd\u3068\u306a\u308a\uff0c\u30b3\u30fc\u30c9\u306e\u53ef\u8aad\u6027\u304c\u5411\u4e0a\u3057\u307e\u3059\uff0e<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a href=\"https:\/\/wiki.php.net\/rfc\/randomizer_additions\">\u4e71\u6570\u30af\u30e9\u30b9\u306e\u62e1\u5145<\/a><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000PHP 8.2\u3067\u8ffd\u52a0\u3055\u308c\u305f\u4e71\u6570\u751f\u6210\u7528\u30af\u30e9\u30b9Randomizer\u3078\u306e\u62e1\u5f35\u3068\u3057\u3066\uff0c3\u3064\u306e\u30e1\u30bd\u30c3\u30c9\uff08getBytesFromString()\uff0cgetFloat()\uff0cnextFloat()\uff09\u306e\u8ffd\u52a0\u304c\u63d0\u6848\u3055\u308c\u307e\u3057\u305f\uff0e<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u307e\u305a\uff0c\u30a2\u30eb\u30d5\u30a1\u30d9\u30c3\u30c8\u3084\u6570\u5b57\u306a\u3069\u306e\u6307\u5b9a\u3057\u305f\u6587\u5b57\u96c6\u5408\u304b\u3089\u6307\u5b9a\u3057\u305f\u9577\u3055\u306e\u30e9\u30f3\u30c0\u30e0\u306a\u6587\u5b57\u5217\u3092\u751f\u6210\u3059\u308bgetBytesFromString()\u30e1\u30bd\u30c3\u30c9\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\uff0e\u4ee5\u4e0b\uff0c\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\uff0e<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$rng = new Random\\Randomizer();<br>$s = 'abcdefghijklmnopqrstvwxyz0123456789';<br>print($rng-&gt;getBytesFromString($s, 6));<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u4e0a\u306e\u4f8b\u306f\uff0c\u5c0f\u6587\u5b57\u306e\u30a2\u30eb\u30d5\u30a1\u30d9\u30c3\u30c8\u3068\u6570\u5024\u306e\u7d44\u307f\u5408\u308f\u305b\u306b\u3088\u308b\u9577\u30556\u6587\u5b57\u306e\u30e9\u30f3\u30c0\u30e0\u306a\u6587\u5b57\u5217\uff08\u4f8b\uff1a19d8hr\uff09\u3092\u751f\u6210\u30fb\u51fa\u529b\u3057\u307e\u3059\uff0e\u5177\u4f53\u7684\u306a\u7528\u9014\u3068\u3057\u3066\u306f\uff0c\u4f8b\u3048\u3070\uff0c\u30e9\u30f3\u30c0\u30e0\u306a\u30d1\u30b9\u30ef\u30fc\u30c9\u6587\u5b57\u5217\u306e\u751f\u6210\u304c\u3042\u308a\u307e\u3059\uff0e\u306a\u304a\uff0c\u3053\u306e\u95a2\u6570\u3067\u306f\u30de\u30eb\u30c1\u30d0\u30a4\u30c8\u6587\u5b57\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093\uff0e\u6587\u5b57\u96c6\u5408\u306e\u5404\u6587\u5b57\u306f\u540c\u3058\u78ba\u7387\u3067\u9078\u629e\u3055\u308c\u307e\u3059\uff0e\u3042\u308b\u6587\u5b57\u304c\u9078\u629e\u3055\u308c\u308b\u78ba\u7387\u3092\u4e0a\u3052\u305f\u3044\u5834\u5408\uff0c\u305d\u306e\u6587\u5b57\u3092\u8907\u6570\u56de\u8a18\u8ff0\u3057\u307e\u3059\uff0e\u4f8b\u3048\u3070\uff0c\u201dAAABC\u201d\u3068\u3059\u308b\u3068\uff0c\u2019A\u2019 \u304c \u2019B\u2019\uff0c\u2019C\u2019\u306b\u6bd4\u3079\u30663\u500d\u591a\u3044\u78ba\u7387\u3067\u9078\u629e\u3055\u308c\u307e\u3059\uff0e<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;\u6b21\u306bgetFloat()\u30e1\u30bd\u30c3\u30c9\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\uff0e\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306f\uff0c\u6700\u5c0f\u5024\u3068\u6700\u5927\u5024\u3067\u6307\u5b9a\u3055\u308c\u305f\u7bc4\u56f2\u306e\u4e71\u6570\u3092\u751f\u6210\u3057\u307e\u3059\uff0e\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u4f8b\u306f\uff0c1\u30682\u306e\u9593\u306e\u4e71\u6570\uff08\u4f8b\uff1a1.234\uff09\u3092\u51fa\u529b\u3057\u307e\u3059\uff0e<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print($rng-&gt;getFloat(1,2);<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f15\u6570\u306b\u306f\u6700\u5c0f\u5024\u3068\u6700\u5927\u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\uff0e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u751f\u6210\u7bc4\u56f2\u306f\u300c\u6700\u5c0f\u5024\u3092\u542b\u307f\u6700\u5927\u5024\u306f\u542b\u307e\u306a\u3044\u300d\u7bc4\u56f2\u3068\u306a\u308a\u307e\u3059\uff0e\u3053\u306e\u5b9a\u7fa9\u306f\uff0c3\u756a\u76ee\u306e\u5f15\u6570\uff08\u30aa\u30d7\u30b7\u30e7\u30f3\uff09\u306b\u3088\u308a\u5909\u66f4\u53ef\u80fd\u3067\u3059\uff0e\u3053\u306e\u5f15\u6570\u306b\u306f\uff0cRandom\\IntervalBoundary\u306e\u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\uff0e\u5b9a\u7fa9\u3092\u88681\u306b\u793a\u3057\u307e\u3059\uff0e<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u88681&nbsp; Random\\IntervalBoundary\u306e\u5024\u3068\u751f\u6210\u7bc4\u56f2<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>&nbsp;<\/strong><\/td><td><strong>\u6700\u5c0f\u5024<\/strong><\/td><td><strong>\u6700\u5927\u5024<\/strong><\/td><\/tr><tr><td><strong>ClosedOpen<\/strong><strong><\/strong><\/td><td>\u542b\u3080<\/td><td>\u542b\u307e\u306a\u3044<\/td><\/tr><tr><td><strong>ClosedClosed<\/strong><\/td><td>\u542b\u3080<\/td><td>\u542b\u3080<\/td><\/tr><tr><td><strong>OpenClosed<\/strong><strong><\/strong><\/td><td>\u542b\u307e\u306a\u3044<\/td><td>\u542b\u3080<\/td><\/tr><tr><td><strong>OpenOpen<\/strong><\/td><td>\u542b\u307e\u306a\u3044<\/td><td>\u542b\u307e\u306a\u3044<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u4f8b\u3048\u3070\uff0c\u4ee5\u4e0b\u306e\u3088\u3046\u306bRandom\\IntervalBoundary::OpenOpen\u3092\u6307\u5b9a\u3059\u308b\u3068\uff0c\u6307\u5b9a\u3057\u305f\u6700\u5c0f\u5024\u3068\u6700\u5927\u5024\u306f\u5171\u306b\u4e71\u6570\u306e\u751f\u6210\u7bc4\u56f2\u306b\u542b\u307e\u308c\u307e\u305b\u3093\uff0e\u3053\u306e\u4f8b\u306e\u96c6\u5408\u306f\uff0c(1,2) \u306e\u3088\u3046\u306b\u8a18\u8ff0\u3055\u308c\u307e\u3059\uff0e<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$r = $rng-&gt;getFloat(1,2,\\Random\\IntervalBoundary::OpenOpen);<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u30aa\u30d7\u30b7\u30e7\u30f3\u5f15\u6570\u3092\u6307\u5b9a\u3057\u306a\u304b\u3063\u305f\u5834\u5408\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u306f\uff0cRandom\\IntervalBoundary::ClosedOpen \u3068\u306a\u3063\u3066\u304a\u308a\uff0c\u6700\u5c0f\u5024\u306f\u4e71\u6570\u306e\u751f\u6210\u7bc4\u56f2\u306b\u542b\u307e\u308c\u307e\u3059\u304c\uff0c\u6700\u5927\u5024\u306f\u542b\u307e\u308c\u307e\u305b\u3093\uff0e<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u6700\u5f8c\u306bnextFloat()\u30e1\u30bd\u30c3\u30c9\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\uff0e\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306e\u52d5\u4f5c\u306f\uff0cgetFloat(0,1)\u306b\u76f8\u5f53\u3057\uff0c\u96c6\u5408\u306f[0,1) \u306e\u3088\u3046\u306b\u8a18\u8ff0\u3055\u308c\u307e\u3059\uff0e<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u4ee5\u4e0b\u306e\u4f8b\u306f\uff0c[0,1)\u306e\u7bc4\u56f2\u306e\u4e71\u6570\u3092\u51fa\u529b\u3057\u307e\u3059\uff0e<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print($rng-&gt;nextFloat());<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u4eca\u56de\u306f\uff0cPHP 8.3\u3067\u5c0e\u5165\u3055\u308c\u308b\u4e88\u5b9a\u306e\u65b0\u6a5f\u80fd\u306e\u4e00\u90e8\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\uff0e\u3053\u306e\u4ed6\u306b\u3082\u3044\u304f\u3064\u304b\u306e\u6a5f\u80fd\u304c\u63d0\u6848\u3055\u308c\u3066\u304a\u308a\uff0c\u672c\u683c\u7684\u306a\u958b\u767a\u304c\u59cb\u307e\u308b\u3068\u4e88\u60f3\u3055\u308c\u308b5\u6708\u307e\u3067\u306b\u4e3b\u306a\u6a5f\u80fd\u304c\u51fa\u63c3\u3046\u3068\u4e88\u60f3\u3055\u308c\u307e\u3059\uff0e\u6b21\u56de\u4ee5\u964d\u3082PHP 8.3\u306e\u65b0\u6a5f\u80fd\u3092\u59cb\u3081\uff0cPHP\u95a2\u9023\u306e\u8a71\u984c\u3092\u7d39\u4ecb\u3044\u305f\u3057\u307e\u3059\uff0e<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30002023\u5e74\u304c\u59cb\u307e\u308a\uff0c\u65e92\u30f6\u6708\u304c\u305f\u3068\u3046\u3068\u3057\u3066\u3044\u307e\u3059\uff0e\u6628\u5e7412\u6708\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305fPHP 8.2\u306f\uff0c\u30d0\u30b0\u4fee\u6b63\u7248\u306e\u30ea\u30ea\u30fc\u30b9\u304c\u307b\u307c\u6bce\u67081\u56de\u30ea\u30ea\u30fc\u30b9\u3055 ... <a title=\"PHP\u91cd\u93ae\u306e\u5ee3\u5ddd\u6c0f\u306e\u30b3\u30e9\u30e0\u300c\u3064\u3044\u306b PHP 8.3\u306b\u5411\u3051\u305f\u958b\u767a\u59cb\u307e\u308b\u300d\uff08\u7b2c29\u56de\uff09\" class=\"read-more\" href=\"https:\/\/kusanagi.tokyo\/column\/archives\/column_5862\" aria-label=\"PHP\u91cd\u93ae\u306e\u5ee3\u5ddd\u6c0f\u306e\u30b3\u30e9\u30e0\u300c\u3064\u3044\u306b PHP 8.3\u306b\u5411\u3051\u305f\u958b\u767a\u59cb\u307e\u308b\u300d\uff08\u7b2c29\u56de\uff09 \u306b\u3064\u3044\u3066\u3055\u3089\u306b\u8aad\u3080\">Read more<\/a><\/p>\n","protected":false},"author":14,"featured_media":1280,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[15],"tags":[110],"series":[50],"journey":[99],"product":[],"class_list":["post-5862","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","tag-technical-guides","series-php-column-hiirokawa","journey-run","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33","no-featured-image-padding"],"_links":{"self":[{"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/posts\/5862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/comments?post=5862"}],"version-history":[{"count":2,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/posts\/5862\/revisions"}],"predecessor-version":[{"id":5875,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/posts\/5862\/revisions\/5875"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/media\/1280"}],"wp:attachment":[{"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/media?parent=5862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/categories?post=5862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/tags?post=5862"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/series?post=5862"},{"taxonomy":"journey","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/journey?post=5862"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/product?post=5862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}