{"type":"rich","provider_name":"Hatena Blog","version":"1.0","author_name":"iww","width":"100%","blog_url":"https://iww.hateblo.jp/","blog_title":"\u63ee\u767a\u6027\u306e\u30e1\u30e2\uff12","url":"https://iww.hateblo.jp/entry/20260226/uuid","height":"190","author_url":"https://blog.hatena.ne.jp/iww/","categories":["PHP"],"description":"\u30e9\u30f3\u30ad\u30f3\u30b0\u53c2\u52a0\u4e2dPHP\u30e9\u30f3\u30ad\u30f3\u30b0\u53c2\u52a0\u4e2d\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0RRRRRRRR-RRRR-4RRR-rRRR-RRRRRRRRRRRRr \u306e\u3068\u3053\u308d\u304c 8,9,a,b \u306b\u306a\u3063\u3066\u308c\u3070\u30e8\u30b7 <? function uuid4(): string { $hex = bin2hex(random_bytes(16)); // 32\u6587\u5b57\u306e16\u9032\u6587\u5b57\u5217\u3092\u4f5c\u308b $hex[12] = '4'; // 12\u6587\u5b57\u76ee\u3092 4 \u306b $hex[16] = '89ab'[rand(0, 3)]; // 16\u6587\u5b57\u76ee\u3092 8,9,a,b \u306e\u3069\u308c\u304b\u306b // \u3044\u3044\u611f\u3058\u306b\u6574\u5f62\u3057\u3066\u8fd4\u3059 return vsprintf('%s%s-%s-%s-%s-\u2026","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiww.hateblo.jp%2Fentry%2F20260226%2Fuuid\" title=\" PHP\u3067\u3001UUIDv4 \u3092\u4f5c\u308b - \u63ee\u767a\u6027\u306e\u30e1\u30e2\uff12\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":" PHP\u3067\u3001UUIDv4 \u3092\u4f5c\u308b","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/42132/1685946694840016","published":"2026-02-26 08:00:00"}