{"id":70,"date":"2013-11-02T21:23:38","date_gmt":"2013-11-02T12:23:38","guid":{"rendered":"http:\/\/tech.akat.info\/?p=70"},"modified":"2014-09-16T01:14:23","modified_gmt":"2014-09-15T16:14:23","slug":"%e3%80%90php%e3%80%91%e3%82%b7%e3%83%aa%e3%82%a2%e3%83%a9%e3%82%a4%e3%82%ba%e3%81%a8%e3%81%af","status":"publish","type":"post","link":"https:\/\/tech.akat.info\/?p=70","title":{"rendered":"\u3010PHP\u3011\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3068\u306f"},"content":{"rendered":"<p>\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\uff1a\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u5185\u90e8\u3067\u6271\u3063\u3066\u3044\u308b\u30c7\u30fc\u30bf\u3092\u4e38\u3054\u3068\u3001\u30d5\u30a1\u30a4\u30eb\u3067\u4fdd\u5b58\u3057\u305f\u308a\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u9001\u53d7\u4fe1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u5909\u63db\u3059\u308b\u3053\u3068<\/p>\n<p>serialize() \u95a2\u6570\u306f\u3001PHP\u3067\u4fdd\u5b58\u3067\u304d\u308b\u3042\u3089\u3086\u308b\u5024\u3092\u30d0\u30a4\u30c8\u30b9\u30c8\u30ea\u30fc\u30e0\u3067\u8868\u3057\u305f\u6587\u5b57\u5217\u3092\u8fd4\u3059<br \/>\n\u3053\u308c\u306b\u3088\u308a\u3001\u914d\u5217\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3084\u30c6\u30ad\u30b9\u30c8\u3068\u3057\u3066\u4fdd\u5b58\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&amp;lt;?php\r\n$data=array(\r\n        'key1' =&amp;gt; 'value1',\r\n        'key2' =&amp;gt; 'value2',\r\n        );\r\n$serial=serialize($data);\r\nvar_dump($serial);\r\n\r\n$serial=unserialize($serial);\r\nvar_dump($serial);\r\n?&amp;gt;\r\n<\/pre>\n<p>\u5b9f\u884c\u3059\u308b\u3068<br \/>\nstring(54) &#8220;a:2:{s:4:&#8221;key1&#8243;;s:6:&#8221;value1&#8243;;s:4:&#8221;key2&#8243;;s:6:&#8221;value2&#8243;;}&#8221;<br \/>\narray(2) {<br \/>\n  [&#8220;key1&#8221;]=><br \/>\n  string(6) &#8220;value1&#8221;<br \/>\n  [&#8220;key2&#8221;]=><br \/>\n  string(6) &#8220;value2&#8221;<br \/>\n}<\/p>\n<p>\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u5f8c\u306e\u6587\u5b57\u5217\u306f\u300c\u578b:\u5024\u300d\u306e\u5f62\u5f0f\u306b\u5909\u63db\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308b<br \/>\n(string\uff1abyte\u6570)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\uff1a\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u5185\u90e8\u3067\u6271\u3063\u3066\u3044\u308b\u30c7\u30fc\u30bf\u3092\u4e38\u3054\u3068\u3001\u30d5\u30a1\u30a4\u30eb\u3067\u4fdd\u5b58\u3057\u305f\u308a\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u9001\u53d7\u4fe1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u5909\u63db\u3059\u308b\u3053\u3068 serialize() \u95a2\u6570\u306f\u3001PHP\u3067\u4fdd\u5b58\u3067\u304d\u308b\u3042\u3089\u3086\u308b\u5024\u3092\u30d0\u30a4\u30c8\u30b9\u30c8\u30ea\u30fc\u30e0\u3067\u8868\u3057\u305f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/70"}],"collection":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=70"}],"version-history":[{"count":5,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/70\/revisions"}],"predecessor-version":[{"id":982,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/70\/revisions\/982"}],"wp:attachment":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=70"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=70"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=70"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}