{"image_url":null,"author_url":"https://blog.hatena.ne.jp/shigemk2/","categories":["PHP"],"provider_name":"Hatena Blog","published":"2021-01-18 20:40:42","version":"1.0","height":"190","author_name":"shigemk2","description":"8.0.0 Argument #2 ($num) must be between 1 and the number of elements in argument #1 ($array) 7.4.0 Second argument has to be between 1 and the number of elements in the array 7.3.0 Second argument has to be between 1 and the number of elements in the array <?php var_dump(array_rand([1,2,3], 4)); va\u2026","width":"100%","blog_title":"by shigemk2","url":"https://www.shigemk2.com/entry/2021/01/18/204042","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F2021%2F01%2F18%2F204042\" title=\"array_rand \u30e1\u30e2 - by shigemk2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"array_rand \u30e1\u30e2","blog_url":"https://www.shigemk2.com/","provider_url":"https://hatena.blog","type":"rich"}