{"id":4936,"date":"2019-11-11T23:34:48","date_gmt":"2019-11-11T14:34:48","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=4936"},"modified":"2019-11-11T23:34:48","modified_gmt":"2019-11-11T14:34:48","slug":"%e3%80%90php%e3%80%91%e6%9c%ac%e3%81%ae%e6%96%87%e7%ab%a0%e3%81%a7%e6%9a%97%e5%8f%b7%e5%8c%96%e3%81%99%e3%82%8b%e3%80%8c%e6%9b%b8%e7%b1%8d%e6%9a%97%e5%8f%b7%e3%80%8d%e3%82%92%e3%81%a4%e3%81%8f","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=4936","title":{"rendered":"\u3010PHP\u3011\u672c\u306e\u6587\u7ae0\u3067\u6697\u53f7\u5316\u3059\u308b\u300c\u66f8\u7c4d\u6697\u53f7\u300d\u3092\u3064\u304f\u3063\u3066\u307f\u305f"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u4e3b\u306b\u300c\u79c1\u304c\u904e\u53bb\u306b\u7d4c\u9a13\u3057\u305f\u5185\u5bb9\u3084\u624b\u9806\u300d\u3092\u307e\u3068\u3081\u76f4\u3057\u305f\u5185\u5bb9\u3092\u66f8\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001\u305b\u3063\u304b\u304f\u30d6\u30ed\u30b0\u3092\u66f8\u304f\u306e\u3060\u304b\u3089\u305d\u308c\u3060\u3051\u3067\u306f\u9762\u767d\u304f\u306a\u3044\u3068\u601d\u3044\u307e\u3057\u305f\u306e\u3067\u3001\u305f\u307e\u306b\u3067\u3059\u304c\u300c\u81ea\u7531\u7814\u7a76\u300d\u7684\u306a\u5185\u5bb9\u3082\u516c\u958b\u3057\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u4eca\u56de\u3082\u305d\u306e\u4e2d\u306b\u5165\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u5185\u5bb9\u3068\u3057\u3066\u306f\u3001<\/p>\n<p><strong style=\"font-size: 35px;\">\u300e\u66f8\u7c4d\u6697\u53f7\u300f\u3092PHP\u3067\u5b9f\u88c5\u3059\u308b\u00a0<\/strong><\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p>\u66f8\u7c4d\u6697\u53f7\u3068\u306f\u3001\u5143\u3005\u306f\u5b50\u4f9b\u306e\u9803\u306b\u3088\u304f\u89b3\u3066\u3044\u305f\u300c\u4e16\u754c\u3075\u3057\u304e\u767a\u898b\u300d\u306e\u4e2d\u3067\u7d39\u4ecb\u3055\u308c\u3066\u3044\u305f\u6697\u53f7\u306a\u306e\u3067\u3059\u304c\u3001\u3069\u3046\u3044\u3046\u3082\u306e\u304b\u3068\u3044\u3046\u3068\u3001<\/p>\n<p><strong>\u300c\u3042\u308b\u7279\u5b9a\u306e\u672c\u3092\u4f7f\u3046\u3053\u3068\u3092\u4e8b\u524d\u306b\u6c7a\u3081\u3066\u304a\u304d\u3001\u305d\u306e\u30c6\u30ad\u30b9\u30c8\u306e\u4e2d\u306b\u3042\u308b\u300c\u4f55\u30da\u30fc\u30b8\u306e\u4f55\u6587\u5b57\u76ee\u3092\u898b\u308d\u300d\u3068\u3044\u3046\u6570\u5b57\u304c\u6697\u53f7\u306e\u6587\u7ae0\u306b\u306a\u308b<\/strong><\/p>\n<p>\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u7279\u5b9a\u306e\u672c\u3092\u6301\u3063\u3066\u3044\u306a\u3044\u3068\u6697\u53f7\u306f\u7d76\u5bfe\u306b\u89e3\u3051\u306a\u3044\u3068\u3044\u3046\u4ed5\u7d44\u307f\u306b\u306a\u3063\u3066\u3044\u308b\u308f\u3051\u3067\u3059\u3002\uff08\u3084\u3063\u3071\u308a\u3053\u3046\u3044\u3046\u3082\u306e\u3092\u8003\u3048\u308b\u4eba\u3063\u3066\u982d\u3044\u3044\u3067\u3059\u3088\u306d\uff09<\/p>\n<p>\u305d\u3057\u3066\u3001\u3053\u306e\u4ed5\u7d44\u307f\u3092\u4f7f\u3063\u3066<code>PHP<\/code>\u3067\u3082\u540c\u69d8\u306e\u3082\u306e\u3092\u3064\u304f\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305c\u3072\u3001\u4eca\u56de\u306f\u300c\u8aad\u307f\u3082\u306e\u300d\u7684\u306a\u30ab\u30f3\u30b8\u3067\u307f\u3066\u3044\u305f\u3060\u3051\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\ud83d\ude0a\u2728<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2595 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/7.png\" alt=\"\" width=\"226\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/7.png 226w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/7-212x300.png 212w\" sizes=\"auto, (max-width: 226px) 100vw, 226px\" \/><\/p>\n<p>\u958b\u767a\u74b0\u5883\uff1a PHP 7.2<\/p>\n<h1>\u6e96\u5099\u3059\u308b<\/h1>\n<p>\u5148\u307b\u3069\u3082\u8a00\u3044\u307e\u3057\u305f\u3088\u3046\u306b\u3001\u66f8\u7c4d\u6697\u53f7\u306b\u306f\u901a\u4fe1\u3059\u308b\uff12\u8005\u304c\u5171\u901a\u306e\u300c\u672c\u300d\u3092\u6301\u3063\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u4eca\u56de\u306f\u8457\u4f5c\u6a29\u304c\u5207\u308c\u305f\u540d\u4f5c\u3092\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u3067\u516c\u958b\u3057\u3066\u304f\u308c\u3066\u3044\u308b<a href=\"https:\/\/www.aozora.gr.jp\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u9752\u7a7a\u6587\u5eab<\/a>\u306e<a href=\"https:\/\/www.aozora.gr.jp\/cards\/000148\/card789.html\" target=\"_blank\" rel=\"noopener noreferrer\">\u3053\u3061\u3089\u306e\u30da\u30fc\u30b8<\/a>\u304b\u3089\u300e\u543e\u8f29\u306f\u732b\u3067\u3042\u308b\u300f\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u203b \u3082\u3057\u3054\u81ea\u8eab\u3067\u8a66\u3057\u3066\u307f\u305f\u3044\u4eba\u306f\u3069\u3093\u306a\u672c\u3067\u3082OK\u3067\u3059\u304c\u3001\u6587\u5b57\u306e\u30d1\u30bf\u30fc\u30f3\u304c\u5c11\u306a\u3044\u3068\u6697\u53f7\u5316\u51fa\u6765\u306a\u3044\u6587\u5b57\u304c\u591a\u304f\u306a\u308b\u306e\u3067\u66f8\u7c4d\u6697\u53f7\u306b\u306f\u5411\u304d\u307e\u305b\u3093\u3002\u3053\u306e\u7406\u7531\u304b\u3089\u300e\u6ce8\u6587\u306e\u591a\u3044\u6599\u7406\u5e97\u300f\u306f\u6587\u5b57\u6570\u304c\u5c11\u306a\u304f\u3001\u3042\u307e\u308a\u3046\u307e\u304f\u3044\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<h1>\u5c02\u7528\u30af\u30e9\u30b9\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u4eca\u56de\u306e\u30e1\u30a4\u30f3\u306b\u306a\u308b\u66f8\u7c4d\u6697\u53f7\u3092\u5b9f\u88c5\u3059\u308b\u30af\u30e9\u30b9\u3092\u3064\u304f\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h1>\u672c\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u30bb\u30c3\u30c8\u3059\u308b\u90e8\u5206<\/h1>\n<p>\u307e\u305a\u306f\u3001\u6697\u53f7\uff0f\u5fa9\u53f7\u3069\u3061\u3089\u306b\u3082\u5fc5\u8981\u306b\u306a\u3063\u3066\u304f\u308b\u300c\u672c\u306e\u6587\u7ae0\u3092\u30bb\u30c3\u30c8\u3059\u308b\u300d\u90e8\u5206\u3092\u3064\u304f\u308a\u307e\u3059\u3002<\/p>\n<pre>&lt;?php\r\n\r\nnamespace App;\r\n\r\nclass BookEncryption {\r\n\r\n<strong>    private $book_text = '';<\/strong>\r\n\r\n<strong>    public function setBookText($text) {<\/strong>\r\n\r\n<strong>        $this-&gt;book_text = $text;<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n\r\n}<\/pre>\n<p>\u3068\u306f\u3044\u3063\u3066\u3082\u3001\u30bb\u30c3\u30c8\u3057\u305f\u30c6\u30ad\u30b9\u30c8\u3092\u30e1\u30f3\u30d0\u5909\u6570\u306b\u683c\u7d0d\u3059\u308b\u3060\u3051\u306e\u30b7\u30f3\u30d7\u30eb\u306a\u3082\u306e\u3067\u3059\u3002<\/p>\n<h1>\u6697\u53f7\u90e8\u5206<\/h1>\n<p>\u7d9a\u3044\u3066\u306f\u6697\u53f7\u5316\u3059\u308b\u90e8\u5206\u3067\u3059\u3002<\/p>\n<pre>class BookEncryption {\r\n\r\n    \/\/ \u7701\u7565\r\n\r\n    <strong>public function encrypt($text) {<\/strong>\r\n\r\n<strong>        $encrypted_codes = [];<\/strong>\r\n<strong>        $characters = mb_str_split($text);<\/strong>\r\n\r\n<strong>        foreach($characters as $character) {<\/strong>\r\n\r\n<strong>            $positions = $this-&gt;getCharacterPositions($character);<\/strong>\r\n\r\n<strong>            if(count($positions) &gt; 0) { \/\/ \u6587\u7ae0\u4e2d\u306b\u8a72\u5f53\u6587\u5b57\u304c\u5b58\u5728\u3057\u3066\u3044\u308b\u5834\u5408<\/strong>\r\n\r\n<strong>                $index = array_rand($positions);<\/strong>\r\n<strong>                $encrypted_codes[] = $positions[$index];<\/strong>\r\n\r\n<strong>            } else {    \/\/ \u5b58\u5728\u3057\u3066\u3044\u306a\u3044\u5834\u5408\uff08\u6587\u5b57\u306f\u305d\u306e\u307e\u307e\uff09<\/strong>\r\n\r\n<strong>                $encrypted_codes[] = $character;<\/strong>\r\n\r\n<strong>            }<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>        return implode(' ', $encrypted_codes);<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n\r\n<strong>    private function getCharacterPositions($character) {<\/strong>\r\n\r\n<strong>        $positions = [];<\/strong>\r\n<strong>        $tmp_book_text = $this-&gt;book_text;<\/strong>\r\n\r\n<strong>        while($current_position = mb_strrpos($tmp_book_text, $character)) {<\/strong>\r\n\r\n<strong>            array_push($positions, $current_position);<\/strong>\r\n<strong>            $tmp_book_text = substr($tmp_book_text, 0, $current_position);<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>        return $positions;<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n\r\n    \/\/ \u7701\u7565\r\n\r\n}<\/pre>\n<p>\u307e\u305a<code>encrypt()<\/code>\u3067\u306f\u3001\u6697\u53f7\u5316\u3057\u305f\u3044\u30c6\u30ad\u30b9\u30c8\u3092<code>mb_str_split()<\/code>\u3067\u4e00\u6587\u5b57\u305a\u3064\u306b\u5206\u89e3\u3057\u3066\u30eb\u30fc\u30d7\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u30eb\u30fc\u30d7\u306e\u4e2d\u3067\u3001<code>getCharacterPositions()<\/code>\u3092\u4f7f\u3063\u3066\u300c\u305d\u306e\u6587\u5b57\u304c\u672c\uff08<code>$book_text<\/code>\uff09\u4e2d\u3067\u73fe\u308c\u308b\u5168\u3066\u306e\u4f4d\u7f6e\uff08\u4f55\u6587\u5b57\u76ee\u304b\u304c\u5206\u304b\u308b\u6570\u5b57\uff09\u300d\u3092\u914d\u5217\u3067\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001\u305d\u306e\u914d\u5217\u306e\u4e2d\u304b\u3089\u30e9\u30f3\u30c0\u30e0\u3067\u3072\u3068\u3064\u3060\u3051\u4f4d\u7f6e\u3092\u53d6\u5f97\u3057\u3001\u305d\u308c\u3089\u3092\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u3067\u7e4b\u3052\u3066\u6697\u53f7\u6587\u3092\u3064\u304f\u308a\u307e\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u6697\u53f7\u6587\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3082\u306e\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>377216 367633 1793 83886 268909 \uff08...\u7d9a\u304f\uff09<\/pre>\n<p>\u203b \u306a\u304a\u3001\u672c\u306e\u4e2d\u306b\u8a72\u5f53\u3059\u308b\u6587\u5b57\u304c\u306a\u3044\u5834\u5408\u306f\u305d\u306e\u307e\u307e\u306e\u6587\u5b57\u304c\u4f7f\u308f\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u73cd\u3057\u3044\u6f22\u5b57\u3092\u3064\u304b\u3063\u3066\u3057\u307e\u3046\u3068\u6697\u53f7\u5316\u51fa\u6765\u306a\u3044\u90e8\u5206\u304c\u3067\u3066\u304f\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u305d\u306e\u5834\u5408\u3067\u3082\u3072\u3089\u304c\u306a\u3092\u4f7f\u3048\u3070\u554f\u984c\u306a\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h1>\u5fa9\u53f7\u90e8\u5206\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u6700\u5f8c\u306b\u6697\u53f7\u5316\u3055\u308c\u305f\u6587\u7ae0\u3092\u5fa9\u53f7\u3059\u308b\u90e8\u5206\u3067\u3059\u3002<\/p>\n<pre>class BookEncryption {\r\n\r\n    \/\/ \u7701\u7565\r\n\r\n    <strong>public function decrypt($text) {<\/strong>\r\n\r\n<strong>        $decrypted_character = '';<\/strong>\r\n<strong>        $encrypted_codes = explode(' ', $text);<\/strong>\r\n\r\n<strong>        foreach($encrypted_codes as $code) {<\/strong>\r\n\r\n<strong>            if(is_numeric($code)) {<\/strong>\r\n\r\n<strong>                $decrypted_character .= mb_substr($this-&gt;book_text, $code, 1);<\/strong>\r\n\r\n<strong>            } else {<\/strong>\r\n\r\n<strong>                $decrypted_character .= $code;<\/strong>\r\n\r\n<strong>            }<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>        return $decrypted_character;<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n\r\n}<\/pre>\n<p>\u6697\u53f7\u6587\u306f\u3001\u300c\u25cf\u6587\u5b57\u76ee\u3092\u898b\u308d\u300d\u3068\u3044\u3046\u610f\u5473\u306b\u306a\u308a\u307e\u3059\u304b\u3089\u3001\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u3067\u5206\u5272\u3057\u305f\u6570\u5b57\u3092\uff11\u3064\u305a\u3064\u30eb\u30fc\u30d7\u3057\u3066\u3044\u304d\u3001\u305d\u306e\u6570\u5b57\u304c\u793a\u3059\u5834\u6240\u306b\u3042\u308b\u6587\u5b57\u3092\u30d4\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3066\u3044\u304f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h1>\u4f7f\u3044\u65b9<\/h1>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306e\u4f7f\u3044\u65b9\u3067\u3059\u3002<\/p>\n<pre><strong>$encrypting_text = '\u6708\u672b\u306f\u6e0b\u8c37\u306715\u6642\u534a\u306b\u5f85\u3061\u5408\u308f\u305b\u3057\u307e\u3057\u3087\u3046\u3002';\r\n<\/strong>\r\n<strong>$book_path = public_path('\/texts\/wagahaiwa_nekodearu.txt');<\/strong>\r\n<strong>$book_text = mb_convert_encoding(<\/strong>\r\n<strong>    file_get_contents($book_path), 'utf8', 'sjis-win'   \/\/ \u9752\u7a7a\u6587\u5eab\u306fShift_JIS\u306a\u306e\u3067UTF-8\u3078\u5909\u63db<\/strong>\r\n<strong>);<\/strong>\r\n\r\n<strong>$be = new \\App\\BookEncryption();<\/strong>\r\n<strong>$be-&gt;setBookText($book_text);<\/strong>\r\n\r\n<strong>\/\/ \u6697\u53f7\u5316<\/strong>\r\n<strong>$encrypted_text = $be-&gt;encrypt($encrypting_text);<\/strong>\r\n\r\n<strong>\/\/ \u5fa9\u53f7<\/strong>\r\n<strong>$decrypted_text = $be-&gt;decrypt($encrypted_text);<\/strong><\/pre>\n<p>\u307e\u305a<code>BookEncryption<\/code>\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u3063\u3066\u672c\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u30bb\u30c3\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p>\u5f8c\u306f\u3001<code>encrypt()<\/code>\u3068<code>decrypt()<\/code>\u3092\u4f7f\u3046\u3060\u3051\u3067\u6697\u53f7\u5316\uff0f\u5fa9\u53f7\u304c\u5b8c\u4e86\u3057\u307e\u3059\u3002<\/p>\n<p>\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\uff01<\/p>\n<p>\u203b \u3061\u306a\u307f\u306b\u300c\u543e\u8f29\u306f\u732b\u3067\u3042\u308b\u300d\u306b\u306f\u300c\u99c5\u300d\u3068\u3044\u3046\u6587\u5b57\u304c\u4f7f\u308f\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u6697\u53f7\u5316\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001\u6587\u5b57\u6570\u304c\u591a\u3044\u306e\u3067\u6697\u53f7\u5316\u6210\u529f\u7387\u306f\u9ad8\u3044\u3088\u3046\u3067\u3057\u305f\u3002<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u6c17\u5206\u3092\u5909\u3048\u3066\u81ea\u7531\u7814\u7a76\u7684\u306a\u8a18\u4e8b\u3092\u304a\u5c4a\u3051\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u66f8\u7c4d\u6697\u53f7\u306f\u4eca\u3067\u3053\u305d\u300c\u30a2\u30a4\u30c7\u30a2\u30fb\u30c6\u30af\u30cb\u30c3\u30af\u300d\u7684\u306b\u805e\u3053\u3048\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u3069\u3046\u3084\u3089\u7b2c\u4e8c\u6b21\u4e16\u754c\u5927\u6226\u306e\u4e2d\u3067\u30b9\u30d1\u30a4\u304c\u5b9f\u969b\u306b\u4f7f\u3063\u3066\u3044\u305f\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u4eca\u306e\u6642\u4ee3\u3067\u306f\u300cSSL\u300d\u3084\u300cBlowFish\u300d\u3001\u300cAES\u300d\u306a\u3069\u591a\u304f\u306e\u6697\u53f7\u6280\u8853\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u5f53\u6642\u3068\u3057\u3066\u306f\u753b\u671f\u7684\u3060\u3063\u305f\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u306d\u3002<\/p>\n<p>\u305c\u3072\u7686\u3055\u3093\u3082\u6620\u753b\u306e\u4e2d\u306b\u767b\u5834\u3059\u308b\u30b9\u30d1\u30a4\u306b\u306a\u3063\u305f\u6c17\u5206\u3067\u66f8\u7c4d\u6697\u53f7\u3092\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-25 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2017\/06\/15.png\" alt=\"\" width=\"348\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2017\/06\/15.png 348w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2017\/06\/15-300x276.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2017\/06\/15-30x28.png 30w\" sizes=\"auto, (max-width: 348px) 100vw, 348px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u4e3b\u306b\u300c\u79c1\u304c\u904e\u53bb\u306b\u7d4c\u9a13\u3057\u305f\u5185\u5bb9\u3084\u624b\u9806\u300d\u3092\u307e\u3068\u3081\u76f4\u3057\u305f\u5185\u5bb9\u3092\u66f8\u3044\u3066\u3044\u307e\u3059\u3002 \u305f\u3060\u3001\u305b\u3063\u304b\u304f\u30d6\u30ed\u30b0\u3092\u66f8\u304f\u306e\u3060\u304b\u3089\u305d\u308c\u3060\u3051\u3067\u306f\u9762\u767d\u304f\u306a\u3044\u3068\u601d\u3044\u307e &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=4936\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u3010PHP\u3011\u672c\u306e\u6587\u7ae0\u3067\u6697\u53f7\u5316\u3059\u308b\u300c\u66f8\u7c4d\u6697\u53f7\u300d\u3092\u3064\u304f\u3063\u3066\u307f\u305f&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":4939,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[185],"class_list":["post-4936","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","tag-185"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/4936","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4936"}],"version-history":[{"count":4,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/4936\/revisions"}],"predecessor-version":[{"id":4941,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/4936\/revisions\/4941"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/4939"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4936"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4936"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}