{"id":11981,"date":"2016-11-14T17:27:37","date_gmt":"2016-11-14T08:27:37","guid":{"rendered":"http:\/\/www.sejuku.net\/blog\/?p=11981"},"modified":"2024-05-06T11:39:50","modified_gmt":"2024-05-06T02:39:50","slug":"%e5%bf%98%e3%82%8c%e3%81%9f%e3%82%89%e8%aa%ad%e3%81%bf%e3%81%9f%e3%81%84php%e3%81%aearray%ef%bc%88%e9%85%8d%e5%88%97%ef%bc%89%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%83%bb%e4%bd%bf%e3%81%84%e6%96%b9","status":"publish","type":"post","link":"https:\/\/www.sejuku.net\/blog\/11981","title":{"rendered":"10\u5206\u3067\u4e38\u308f\u304b\u308a\uff01PHP\u306e\u914d\u5217(array)\u306e\u57fa\u790e\u304b\u3089\u5fdc\u7528\u307e\u3067\u89e3\u8aac"},"content":{"rendered":"<p><div class=\"box_voice\"><br \/>\nPHP\u306e\u52c9\u5f37\u3092\u59cb\u3081\u305f\u3051\u3069\u3001\u914d\u5217\u306e\u4f7f\u3044\u65b9\u304c\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u30fb\u30fb\u30fb<br \/>\n\u914d\u5217\u306f\u3069\u306e\u3088\u3046\u306a\u7528\u9014\u3067\u4f7f\u3048\u3070\u3044\u3044\u306e\uff1f\u5909\u6570\u3068\u306e\u9055\u3044\u306f\u306a\u306b\uff1f<br \/>\n\u914d\u5217\u3092\u52b9\u7387\u3088\u304f\u899a\u3048\u305f\u3044\u3051\u3069\u4f55\u304b\u826f\u3044\u65b9\u6cd5\u306f\u306a\u3044\u304b\u306a\uff1f<br \/>\n<\/div><\/p>\n<p>PHP\u306e\u52c9\u5f37\u3092\u59cb\u3081\u305f\u3070\u304b\u308a\u306e\u521d\u5b66\u8005\u304c\u3001<b>\u6700\u521d\u306b\u3064\u307e\u3065\u304d\u3084\u3059\u3044\u306e\u304c\u914d\u5217<\/b>\u3068\u8a00\u3048\u307e\u3059\u3002\u914d\u5217\u306e\u57fa\u672c\u306f\u7406\u89e3\u3067\u304d\u3066\u3082\u3001\u5b9f\u969b\u306e\u696d\u52d9\u3067\u306f\u914d\u5217\u3092\u99c6\u4f7f\u3057\u3066\u3055\u307e\u3056\u307e\u306a\u51e6\u7406\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u3093\u306b\u3061\u306f\uff01\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u89e3\u8aac\u3059\u308b\u914d\u5217\u306e\u6a5f\u80fd\u304c\u3069\u3093\u306a\u6a5f\u80fd\u306a\u306e\u304b\u308f\u304b\u3089\u306a\u3044\u65b9\u3067\u3082\u4e01\u5be7\u306b\u89e3\u8aac\u3057\u3066\u3044\u304f\u306e\u3067\u305c\u3072\u3001\u3053\u306e\u8a18\u4e8b\u3067\u5b66\u3093\u3067\u3044\u3063\u3066\u304f\u3060\u3055\u3044\u3002\u521d\u5fc3\u8005\u5fc5\u898b\u306e\u5185\u5bb9\u3068\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u305c\u3072\u6700\u5f8c\u307e\u3067\u8aad\u3093\u3067\u3044\u305f\u3060\u3044\u3066PHP\u306e\u914d\u5217\u306b\u3064\u3044\u3066\u7406\u89e3\u3092\u6df1\u3081\u3066\u3044\u305f\u3060\u3051\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n<p><b>\u3053\u306e\u8a18\u4e8b\u306f\u3053\u3093\u306a\u4eba\u306e\u305f\u3081\u306b\u66f8\u304d\u307e\u3057\u305f<\/b><br \/>\n<div class=\"box01\"><\/p>\n<ul>\n<li><b>\u914d\u5217\u306e\u57fa\u790e\u306e\u57fa\u790e\u3092\u5b66\u3073\u305f\u3044\u65b9<\/b><\/li>\n<li><b>\u914d\u5217\u306e\u3055\u307e\u3056\u307e\u306a\u64cd\u4f5c\u65b9\u6cd5\u3092\u77e5\u308a\u305f\u3044\u65b9<\/b><\/li>\n<li><b>\u914d\u5217\u3067\u3064\u307e\u3065\u3044\u3066\u56f0\u3063\u3066\u3044\u308b\u65b9<\/b><\/li>\n<\/ul>\n<\/div>\n<h2>PHP\u306e\u914d\u5217(Array)\u3068\u306f<\/h2>\n<p>\u914d\u5217(Array)\u3068\u306f\u3069\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3057\u3087\u3046\u304b\uff1f\u914d\u5217\u306e\u8aac\u660e\u306b\u5165\u308b\u524d\u306b\u57fa\u672c\u578b\uff08\u30ea\u30c6\u30e9\u30eb\uff09\u306b\u3064\u3044\u3066\u304a\u3055\u3089\u3044\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u57fa\u672c\u5f62\uff08\u30ea\u30c6\u30e9\u30eb\uff09\u3067\u306f1\u3064\u306e\u5909\u6570\u3092\u5b9a\u7fa9\u3057\u3066\u3001\u305d\u306e\u5909\u6570\u306b\u5bfe\u3057\u3066\u5024\u3092\u4ee3\u5165\u3057\u307e\u3059\u3002PHP\u3067\u306f\u5909\u6570\u3092\u5ba3\u8a00\u3059\u308b\u3068\u540c\u6642\u306b\u5024\u3092\u4ee3\u5165\u3059\u308b\u306e\u304c\u57fa\u672c\u3067\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">\/\/\u5909\u6570$sports\u306b\u5024\u2019\u91ce\u7403\u2019\u3092\u5165\u308c\u308b\r\n$sports =  '\u91ce\u7403'<\/pre>\n<p>PHP\u306e\u914d\u5217(Array)\u306e\u5834\u5408\u306f\u3001\u308f\u304b\u308a\u3084\u3059\u304f\u8a00\u3046\u3068\u3053\u306e<b>\u5909\u6570\u306e\u5024\u304c\u8907\u6570\u683c\u7d0d\u3067\u304d\u308b<\/b>\u3082\u306e\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.sejuku.net\/blog\/11981\/523b4c42a5038c569b1ef25e65174888\" rel=\"attachment wp-att-87129\"><img decoding=\"async\" class=\"aligncenter size-large wp-image-87129\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2016\/11\/523b4c42a5038c569b1ef25e65174888-640x183.jpg\" alt=\"\" width=\"640\" height=\"183\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2016\/11\/523b4c42a5038c569b1ef25e65174888-640x183.jpg 640w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2016\/11\/523b4c42a5038c569b1ef25e65174888-150x43.jpg 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2016\/11\/523b4c42a5038c569b1ef25e65174888-300x86.jpg 300w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2016\/11\/523b4c42a5038c569b1ef25e65174888.jpg 709w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u8907\u6570\u306e\u5024\u304c\u683c\u7d0d\u3067\u304d\u308b\u305f\u3081\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u6271\u3044\u305f\u3044\u3068\u304d\u306b\u914d\u5217\u306f\u975e\u5e38\u306b\u4fbf\u5229\u3067\u3059\u3002\u307e\u305f\u3001\u914d\u5217\u306b\u306f<span style=\"color: #339966;\"><strong>\u9023\u60f3\u914d\u5217<\/strong><\/span>\u3001<span style=\"color: #339966;\"><strong>\u591a\u6b21\u5143\u914d\u5217<\/strong><\/span>\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u9023\u60f3\u914d\u5217\u306f\u30ad\u30fc\u3068\u5024\u3092\u5225\u3005\u306b\u6307\u5b9a\u3067\u304d\u308b\u914d\u5217\u3001\u591a\u6b21\u5143\u914d\u5217\u306f\u914d\u5217\u306e\u5185\u90e8\u306b\u914d\u5217\u3092\u6301\u3064\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305d\u308c\u305e\u308c\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u3082\u3053\u306e\u8a18\u4e8b\u5185\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n<b>\u3064\u307e\u308a\u914d\u5217\u3068\u306f<\/b><br \/>\n<div class=\"box01\"><\/p>\n<ul>\n<li><b>\u5024\u3092\u8907\u6570\u683c\u7d0d\u3067\u304d\u308b<\/b><\/li>\n<li><b>\u914d\u5217\u306b\u306f\u9023\u60f3\u914d\u5217\u3068\u591a\u6b21\u5143\u914d\u5217\u3068\u3044\u3046\u7a2e\u985e\u3082\u3042\u308b<\/b><\/li>\n<\/ul>\n<\/div>\n<h2>PHP\u306e\u914d\u5217(Array)\u306f\u3069\u3093\u306a\u3068\u304d\u306b\u4f7f\u3046\u306e\uff1f<\/h2>\n<p>PHP\u306e\u914d\u5217\u306f\u6700\u521d\u306b\u8aac\u660e\u3057\u305f\u3088\u3046\u306b\u8907\u6570\u306e\u30c7\u30fc\u30bf\u3092\u4e00\u5ea6\u306b\u6271\u3046\u3053\u3068\u304c\u53ef\u80fd\u306a\u305f\u3081\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u6271\u3046\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u751f\u5f92\u306e\u30c6\u30b9\u30c8\u306e\u70b9\u6570\u3092\u6271\u3046\u5909\u6570\u3092\u57fa\u672c\u5f62\uff08\u30ea\u30c6\u30e9\u30eb\uff09\u3067\u8a18\u8ff0\u3057\u3088\u3046\u3068\u3057\u305f\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5927\u91cf\u306b\u5909\u6570\u3092\u5b9a\u7fa9\u3057\u306a\u3051\u308c\u3070\u3044\u3051\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">$score1 = \u5024;\r\n$score2 = \u5024;\r\n$score3 = \u5024;\r\n$score4 = \u5024;\r\n\u2026<\/pre>\n<p>\u3057\u304b\u3057\u3001\u914d\u5217\u3092\u4f7f\u7528\u3059\u308c\u30701\u3064\u306e\u914d\u5217\u5909\u6570\u3092\u5b9a\u7fa9\u3059\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">$array = [\u50241,\u50242,\u50243 \u2026]<\/pre>\n<p>\u305d\u306e\u305f\u3081\u3001\u8907\u6570\u306e\u540c\u3058\u7a2e\u985e\u306e\u5024\u3092\u6271\u3044\u305f\u3044\u5834\u5408\u306f\u914d\u5217\u3092\u4f7f\u7528\u3059\u308b\u3068\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<h2>PHP\u306e\u914d\u5217(Array)\u306e\u66f8\u304d\u65b9\u3068\u306f<\/h2>\n<p>\u914d\u5217\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3068\u3057\u3066\u306farray()\u3067\u4f5c\u6210\u3059\u308b\u304b\u3001[]\uff08\u89d2\u62ec\u5f27\uff09\u3067\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><b>\u203b<\/b>PHP5.4\u4ee5\u964d\u3067\u306f\u914d\u5217\u306e\u77ed\u7e2e\u69cb\u6587\u304c\u8ffd\u52a0\u3055\u308c\u3001array()\u306e\u4ee3\u308f\u308a\u306b[]\uff08\u89d2\u62ec\u5f27\uff09\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306e\u914d\u5217\u306f[]\uff08\u89d2\u62ec\u5f27\uff09\u306e\u5f62\u5f0f\u3067\u306e\u89e3\u8aac\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><b>\u914d\u5217\u306e\u66f8\u304d\u65b9<\/b><\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">$\u914d\u5217\u5909\u6570\u540d = [\r\n          '\u50241',\r\n          '\u50242',\r\n          '\u50243'\r\n          ];<\/pre>\n<p>\u5024\u3092\u683c\u7d0d\u3059\u308b\u3053\u3068\u3067\u30010\u304b\u3089\u9806\u756a\u306b0,1,2\u304c\u6dfb\u5b57\uff08\u8981\u7d20\u756a\u53f7\uff09\u3067\u5272\u308a\u632f\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u914d\u5217\u306b\u306f\u3055\u307e\u3056\u307e\u306a\u4f7f\u3044\u65b9\u304c\u53ef\u80fd\u3067\u3001\u57fa\u672c\u3092\u7406\u89e3\u3057\u305f\u3060\u3051\u3067\u306f\u5b9f\u969b\u306e\u5b9f\u52d9\u3067\u306f\u3064\u307e\u3065\u304d\u3084\u3059\u3044\u3068\u8a00\u3048\u307e\u3059\u3002\u5b9f\u52d9\u3067\u3088\u304f\u4f7f\u3046<b>\u5fdc\u7528\u7684\u306a\u4f7f\u3044\u65b9\u306e\u7406\u89e3\u3082\u3042\u308b\u7a0b\u5ea6\u5fc5\u8981<\/b>\u306a\u305f\u3081\u3001\u3053\u306e\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u3066\u3044\u308b\u5fdc\u7528\u7684\u306a\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u3082\u76ee\u3092\u901a\u3057\u3066\u3044\u305f\u3060\u3051\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n<p><b>PHP\u306e\u914d\u5217\u306e\u66f8\u304d\u65b9\u307e\u3068\u3081<\/b><br \/>\n<div class=\"box01\"><\/p>\n<ul>\n<li><b>\u914d\u5217\u306f\u4efb\u610f\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u578b\u3092\u8981\u7d20\u3068\u3057\u3066\u6301\u3064\u3053\u3068\u304c\u3067\u304d\u308b<\/b><\/li>\n<li><b>\u914d\u5217\u306farray()\u304b[]\uff08\u89d2\u62ec\u5f27\uff09\u3067\u4f5c\u6210\u3067\u304d\u308b<\/b><\/li>\n<li><b>\u5024\u3092\u683c\u7d0d\u3059\u308b\u3053\u3068\u3067\u6dfb\u5b57\u304c0,1,2\u3068\u5272\u308a\u632f\u3089\u308c\u308b<\/b><\/li>\n<\/ul>\n<\/div>\n<h2>PHP\u306e\u914d\u5217\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9<\/h2>\n<h3>\u914d\u5217\u306e\u521d\u671f\u5316\u3068\u4ee3\u5165<\/h3>\n<p>PHP\u306e\u5834\u5408\u3001\u914d\u5217\u306e\u521d\u671f\u5316\u3068\u4ee3\u5165\u306f\u57fa\u672c\u7684\u306b\u307e\u3068\u3081\u3066\u5b9f\u65bd\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5fa1\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:php decode:true \">$sports = [\r\n          'Baseball',\r\n          'Badminton',\r\n          'Basketball'\r\n          ];<\/pre>\n<p>\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u914d\u5217\u5909\u6570$sports\u3092\u5b9a\u7fa9\u3057\u305f\u3042\u3068\u306b[]\uff08\u89d2\u62ec\u5f27\uff09\u306e\u4e2d\u306b&#8217;Baseball&#8217;\u3001&#8217;Badminton&#8217;\u3001&#8217;Basketball&#8217;\u306e\u5024\u3092\u9806\u756a\u306b\u4ee3\u5165\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4ee3\u5165\u3059\u308b\u5024\u306f\u6587\u5b57\u5217\u306e\u4ed6\u306b\u6570\u5024\u3082\u683c\u7d0d\u53ef\u80fd\u3067\u3059\u3002\u307e\u305f\u3001\u6587\u5b57\u5217\u3068\u6570\u5024\u304c\u6df7\u5728\u3057\u3066\u3082\u5927\u4e08\u592b\u3067\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">$sports = [\r\n          'Baseball',\r\n          'Badminton',\r\n          100,\r\n          'Basketball',\r\n          200\r\n          ];\r\n<\/pre>\n<h3>\u914d\u5217\u306e\u51fa\u529b<\/h3>\n<p>\u914d\u5217\u306e\u4e2d\u8eab\u3092\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u306fprint_r\u306a\u3069\u6587\u5b57\u5217\u3092\u51fa\u529b\u3059\u308b\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u3068\u4fbf\u5229\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u914d\u5217\u306e\u5024\u3092print_r\u95a2\u6570\u3067\u51fa\u529b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">$sports = [\r\n          'Baseball',\r\n          'Badminton',\r\n          'Basketball'\r\n          ];\r\n \r\nprint_r($sports);<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">Array\r\n(\r\n    [0] =&gt; Baseball\r\n    [1] =&gt; Badminton\r\n    [2] =&gt; Basketball\r\n)<\/pre>\n<p>\u307e\u305f\u3001\u7e70\u308a\u8fd4\u3057\u6587\u3067\u3042\u308bforeach\u6587\u3092\u4f7f\u7528\u3057\u3066\u8981\u7d20\u3054\u3068\u306b\u5024\u3092\u51fa\u529b\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">&lt;?php\r\n\r\n$sports = [\r\n          'Baseball',\r\n          'Badminton',\r\n          'Basketball'\r\n          ];\r\n \r\nforeach($sports as $value){\r\n    echo $value;\r\n}\r\n?&gt;<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">Baseball\r\nBadminton\r\nBasketball<\/pre>\n<p>foreach\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u5408\u308f\u305b\u3066\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/47603\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/04\/No.4-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010\u3084\u3055\u3057\u3044PHP\u3011foreach\u6587\u306e\u57fa\u790e\u3092\u77e5\u3063\u3066\u304b\u3093\u305f\u3093\u306a\u5fdc\u7528\u3092\u8a66\u3057\u3066\u307f\u308b<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            <\/p>\n<h3>\u914d\u5217\u306e\u8981\u7d20\u3092\u8ffd\u52a0<\/h3>\n<p>\u914d\u5217\u306b\u8981\u7d20\u3092\u8ffd\u52a0\u3059\u308b\u5834\u5408\u306f[]\uff08\u89d2\u62ec\u5f27\uff09\u3092\u6307\u5b9a\u3057\u3066\u300c$\u914d\u5217\u540d[] = &#8216;\u5024&#8217;\u300d\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">&lt;?php\r\n\r\n\/\/ \u6700\u7d42\u8981\u7d20\u306e\u5f8c\u306b\u8ffd\u52a0\uff08\u6dfb\u5b57\u914d\u5217\u306e\u5834\u5408\uff09\r\n$sports = [\r\n           '\u91ce\u7403',\r\n           '\u91ce\u7403\u30d0\u30c9\u30df\u30f3\u30c8\u30f3',\r\n           '\u30d0\u30b9\u30b1\u30c3\u30c8\u30dc\u30fc\u30eb'\r\n          ];\r\n \r\n$sports[] = '\u30d0\u30ec\u30fc\u30dc\u30fc\u30eb';\r\nprint_r($sports);\r\n\r\n?&gt;<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">Array\r\n(\r\n    [0] =&gt; \u91ce\u7403\r\n    [1] =&gt; \u91ce\u7403\u30d0\u30c9\u30df\u30f3\u30c8\u30f3\r\n    [2] =&gt; \u30d0\u30b9\u30b1\u30c3\u30c8\u30dc\u30fc\u30eb\r\n    [3] =&gt; \u30d0\u30ec\u30fc\u30dc\u30fc\u30eb\r\n)<\/pre>\n<h2>PHP\u306e\u9023\u60f3\u914d\u5217<\/h2>\n<h3>\u9023\u60f3\u914d\u5217\u3068\u306f<\/h3>\n<p>\u9023\u60f3\u914d\u5217\u306f\u5024\u3092\u683c\u7d0d\u3057\u3066\u81ea\u52d5\u7684\u306b\u6dfb\u5b57\u306e\u756a\u53f7\uff080,1,2\u2026\uff09\u304c\u5272\u308a\u632f\u3089\u308c\u308b\u306e\u3068\u306f\u7570\u306a\u308a\u3001<b>\u756a\u53f7\u3092\u30ad\u30fc\u3068\u3057\u3066\u540d\u524d\u3092\u3064\u3051\u308b<\/b>\u3053\u3068\u304c\u3067\u304d\u308b\u914d\u5217\u3067\u3059\u3002\u6dfb\u5b57\u756a\u53f7\u306b\u30ad\u30fc\u3068\u3057\u3066\u540d\u524d\u3092\u3064\u3051\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u305d\u306eKey\u3092\u6307\u5b9a\u3057\u3066\u5024\u3092\u53d6\u308a\u51fa\u3059\u306a\u3069\u306e\u7ba1\u7406\u304c\u3057\u3084\u3059\u304f\u306a\u308b\u3068\u3044\u3063\u305f\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u9023\u60f3\u914d\u5217\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u89d2\u62ec\u5f27[]\u306e\u4e2d\u3067\u300c\u30ad\u30fc\u540d=&gt;\u5024\u300d\u306e\u3088\u3046\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u9023\u60f3\u914d\u5217\u306e\u66f8\u304d\u65b9\uff1a<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">$\u914d\u5217\u5909\u6570\u540d = [\r\n          \u30ad\u30fc\u540d1=&gt;\u50241,\r\n          \u30ad\u30fc\u540d2=&gt;\u50242,\r\n          \u30ad\u30fc\u540d3=&gt;\u50243'\r\n          \u2026\r\n          ];<\/pre>\n<h3>\u9023\u60f3\u914d\u5217\u306e\u4f7f\u3044\u65b9<\/h3>\n<p>\u30ad\u30fc\u3068\u5024\u3092\u5225\u3005\u306b\u6307\u5b9a\u3067\u304d\u308b\u9023\u60f3\u914d\u5217\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002\u4ee5\u4e0b\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5fa1\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:php decode:true \">$sports = [\r\n          'Baseball'=&gt;'\u91ce\u7403',\r\n          'Badminton'=&gt;'\u30d0\u30c9\u30df\u30f3\u30c8\u30f3',\r\n          'Basketball'=&gt;'\u30d0\u30b9\u30b1\u30c3\u30c8\u30dc\u30fc\u30eb'\r\n          ];\r\n \r\nprint_r($sports);<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">Array\r\n(\r\n    [Baseball] =&gt; \u91ce\u7403\r\n    [Badminton] =&gt; \u30d0\u30c9\u30df\u30f3\u30c8\u30f3\r\n    [Basketball] =&gt; \u30d0\u30b9\u30b1\u30c3\u30c8\u30dc\u30fc\u30eb\r\n)<\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u30ad\u30fc\u306b\u7d10\u3065\u304f\u5024\u304c\u53d6\u5f97\u3067\u304d\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u306d\uff01<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306bforeach\u6587\u3092\u4f7f\u7528\u3057\u3066\u9023\u60f3\u914d\u5217\u306e\u30ad\u30fc\u3068\u5024\u3092\u51fa\u529b\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">&lt;?php\r\n$fruits = [\r\n    'apple'=&gt;'100\u5186',\r\n    'orange'=&gt;'80\u5186',\r\n    'banana'=&gt;'120\u5186',\r\n    'melon'=&gt;''\r\n];\r\n\r\nforeach($fruits as $key=&gt;$val){\r\n    echo $key.'\u306e\u5024\u6bb5\u306f'.$val;\r\n    echo '&lt;br&gt;';\r\n}\r\n\r\n?&gt;<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">apple\u306e\u5024\u6bb5\u306f100\u5186\r\norange\u306e\u5024\u6bb5\u306f80\u5186\r\nbanana\u306e\u5024\u6bb5\u306f120\u5186\r\nmelon\u306e\u5024\u6bb5\u306f<\/pre>\n<p>\u9023\u60f3\u914d\u5217\u3067foreach\u6587\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306fforeach\u6587\u306e\u6761\u4ef6\u5f0f\u3067\u300c $\u914d\u5217\u5909\u6570\u540d as $\u30ad\u30fc\u53d6\u5f97\u5909\u6570=&gt;$\u5024\u53d6\u5f97\u5909\u6570\u300d\u306e\u3088\u3046\u306b\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306e\u696d\u52d9\u3067\u3082foreach\u6587\u3067\u30ad\u30fc\u3084\u5024\u3092\u53d6\u308a\u51fa\u3057\u3066\u3001\u30ad\u30fc\u3054\u3068\u306b\u6761\u4ef6\u3092\u5206\u5c90\u3055\u305b\u308b\u306a\u3069\u306e\u51e6\u7406\u3067\u4f7f\u308f\u308c\u307e\u3059\u306e\u3067\u3001\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u306f\u3088\u304f\u7406\u89e3\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>PHP\u306e\u591a\u6b21\u5143\u914d\u5217<\/h2>\n<h3>\u591a\u6b21\u5143\u914d\u5217\u3068\u306f<\/h3>\n<p>\u591a\u6b21\u5143\u914d\u5217\u3068\u306f\u3001\u4e00\u8a00\u3067\u8a00\u3046\u3068\u914d\u5217\u306e\u4e2d\u306b\u3055\u3089\u306b\u8907\u6570\u306e\u914d\u5217\u304c\u5165\u3063\u3066\u3044\u308b\u3082\u306e\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.sejuku.net\/blog\/11981\/5d3394c5a89084901962f81e1817727d\" rel=\"attachment wp-att-87130\"><img decoding=\"async\" class=\"aligncenter size-large wp-image-87130\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2016\/11\/5d3394c5a89084901962f81e1817727d-640x267.jpg\" alt=\"\" width=\"640\" height=\"267\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2016\/11\/5d3394c5a89084901962f81e1817727d-640x267.jpg 640w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2016\/11\/5d3394c5a89084901962f81e1817727d-150x63.jpg 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2016\/11\/5d3394c5a89084901962f81e1817727d-300x125.jpg 300w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2016\/11\/5d3394c5a89084901962f81e1817727d.jpg 752w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>\u591a\u6b21\u5143\u914d\u5217\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">$\u914d\u5217\u5909\u6570 = [\r\n    [\u50241, \u50242, \u50243\u2026],\r\n    [\u50241, \u50242, \u50243\u2026],\r\n    [\u50241, \u50242, \u50243\u2026],\r\n    \u2026\r\n];<\/pre>\n<p>$\u914d\u5217\u5909\u6570\u306e\u4e2d\u306b\u8907\u6570\u306e\u914d\u5217\u306e\u60c5\u5831\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u306d\u3002<\/p>\n<h3>\u591a\u6b21\u5143\u914d\u5217\u306e\u4f7f\u3044\u65b9<\/h3>\n<p>\u591a\u6b21\u5143\u914d\u5217\u306e\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">&lt;?php\r\n$array = [\r\n    ['\u7530\u4e2d',25,'\u7537\u6027'],\r\n    ['\u9234\u6728',32,'\u5973\u6027'],\r\n    ['\u9ad8\u6a4b',20,'\u5973\u6027']\r\n];\r\n \r\nprint_r($array);\r\n\r\n?&gt;<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">Array\r\n(\r\n    [0] =&gt; Array\r\n        (\r\n            [0] =&gt; \u7530\u4e2d\r\n            [1] =&gt; 25\r\n            [2] =&gt; \u7537\u6027\r\n        )\r\n\r\n    [1] =&gt; Array\r\n        (\r\n            [0] =&gt; \u9234\u6728\r\n            [1] =&gt; 32\r\n            [2] =&gt; \u5973\u6027\r\n        )\r\n\r\n    [2] =&gt; Array\r\n        (\r\n            [0] =&gt; \u9ad8\u6a4b\r\n            [1] =&gt; 20\r\n            [2] =&gt; \u5973\u6027\r\n        )\r\n\r\n)<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\u304b\u3089\u308f\u304b\u308b\u3088\u3046\u306b\u914d\u5217$array\u306e\u5404\u8981\u7d20\u306b1\u3064\u306e\u914d\u5217\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u306d\u3002\u7e70\u308a\u8fd4\u3057\u6587\u3067\u591a\u6b21\u5143\u914d\u5217\u306e\u5024\u3092\u51fa\u529b\u3057\u305f\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">&lt;?php\r\n$array = [\r\n    ['\u7530\u4e2d',25,'\u7537\u6027'],\r\n    ['\u9234\u6728',32,'\u5973\u6027'],\r\n    ['\u9ad8\u6a4b',20,'\u5973\u6027']\r\n];\r\n \r\nforeach($array as $vals){\r\n    echo $vals[0].'\uff1a'.$vals[1].'\u6b73'.$vals[2];\r\n    echo '&lt;br&gt;';\r\n}\r\n\r\n?&gt;<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">\u7530\u4e2d\uff1a25\u6b73\u7537\u6027\r\n\u9234\u6728\uff1a32\u6b73\u5973\u6027\r\n\u9ad8\u6a4b\uff1a20\u6b73\u5973\u6027<\/pre>\n<p>\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306fforeach\u3092\u4f7f\u3063\u3066\u8981\u7d20\u3054\u3068\u306b\u5024\u3092\u51fa\u529b\u3057\u307e\u3057\u305f\u3002$vals\u306b\u306f$array\u306e\u4e2d\u306e\u914d\u5217\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067$vals[0] $vals[1] $vals[2]\u306e\u3088\u3046\u306b\u8981\u7d20\u756a\u53f7\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u914d\u5217\u306e\u5024\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>PHP\u306e\u914d\u5217\u306e\u5fdc\u7528\u7684\u306a\u4f7f\u3044\u65b9<\/h2>\n<p>\u3053\u3053\u3067\u306f\u914d\u5217\u306e\u3055\u307e\u3056\u307e\u306a\u5fdc\u7528\u7684\u306a\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u914d\u5217\u306e\u5024\u3092\u691c\u7d22\u3057\u3088\u3046<\/h3>\n<p>\u3053\u3053\u3067\u306f\u300carray_search\u300d\u300cin_Array\u300d\u300carray_keys\u300d\u3092\u4f7f\u7528\u3057\u3066\u914d\u5217\u306e\u5024\u3092\u691c\u7d22\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>array_search\u95a2\u6570\u306f\u6307\u5b9a\u3057\u305f\u5024\u3092\u691c\u7d22\u3057\u3001\u6700\u521d\u306e\u30ad\u30fc\u3092\u8fd4\u3057\u307e\u3059\u3002\u5024\u304c\u5b58\u5728\u3057\u306a\u304b\u3063\u305f\u3089FALSE\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">$sports = [\r\n            'Baseball'=&gt;'\u91ce\u7403',\r\n            'Badminton'=&gt;'\u30d0\u30c9\u30df\u30f3\u30c8\u30f3',\r\n            'Basketball'=&gt;'\u30d0\u30b9\u30b1\u30c3\u30c8\u30dc\u30fc\u30eb'\r\n          ];\r\n \r\n$key = array_search('\u30d0\u30b9\u30b1\u30c3\u30c8\u30dc\u30fc\u30eb', $sports);\r\n\r\nprint_r($key);<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">Basketball<\/pre>\n<p>in_array\u95a2\u6570\u306f\u914d\u5217\u306e\u4e2d\u306b\u6307\u5b9a\u3057\u305f\u5024\u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u306fTRUE\u3002\u672a\u5b58\u5728\u306fFALSE\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">$sports = [\r\n            'Baseball'=&gt;'\u91ce\u7403',\r\n            'Badminton'=&gt;'\u30d0\u30c9\u30df\u30f3\u30c8\u30f3',\r\n            'Basketball'=&gt;'\u30d0\u30b9\u30b1\u30c3\u30c8\u30dc\u30fc\u30eb'\r\n          ];\r\n \r\nif (in_array('\u30d0\u30b9\u30b1\u30c3\u30c8\u30dc\u30fc\u30eb', $sports)){\r\n  echo '\u30d0\u30b9\u30b1\u30c3\u30c8\u30dc\u30fc\u30eb\u5b58\u5728\u3057\u307e\u3059\u3002';\r\n}\r\n \r\nif (in_array('\u5353\u7403', $sports)){\r\n  echo '\u5353\u7403\u306f\u5b58\u5728\u3057\u307e\u3059\u3002';\r\n}<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">\u30d0\u30b9\u30b1\u30c3\u30c8\u30dc\u30fc\u30eb\u5b58\u5728\u3057\u307e\u3059\u3002<\/pre>\n<p>array_keys\u95a2\u6570\u306f\u914d\u5217\u306e\u30ad\u30fc\u306e\u3059\u3079\u3066\u3001\u3042\u308b\u3044\u306f\u4e00\u90e8\u3092\u8fd4\u3057\u307e\u3059\u3002\u91cd\u8907\u3057\u305f\u5024\u304c\u3042\u3063\u305f\u5834\u5408\u3067\u3082\u30ad\u30fc\u3092\u914d\u5217\u306b\u3057\u3066\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">$sports = [\r\n            'Baseball'=&gt;'\u91ce\u7403',\r\n            'Badminton'=&gt;'\u30d0\u30c9\u30df\u30f3\u30c8\u30f3',\r\n            'Basketball'=&gt;'\u30d0\u30b9\u30b1\u30c3\u30c8\u30dc\u30fc\u30eb',\r\n            'miniBasketball'=&gt;'\u30d0\u30b9\u30b1\u30c3\u30c8\u30dc\u30fc\u30eb'\r\n          ];\r\n \r\n$keyArray = array_keys($sports);\r\n\r\nprint_r($keyArray);<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">Array\r\n(\r\n    [0] =&gt; Baseball\r\n    [1] =&gt; Badminton\r\n    [2] =&gt; Basketball\r\n    [3] =&gt; miniBasketball\r\n)<\/pre>\n<h3>\u914d\u5217\u3092\u7d50\u5408\u3057\u3066\u307f\u3088\u3046<\/h3>\n<p>\u3053\u3053\u3067\u306f\u300cArray_merge\u300d\u300cArray_merge_recursive\u300d\u300cArray_push\u300d\u3092\u4f7f\u7528\u3057\u3066\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>array_merge\u95a2\u6570\u306f\u914d\u5217\u540c\u58eb\u3092\u7d50\u5408\u3059\u308b\u3068\u304d\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<br \/>\n<div class=\"box01\"><\/p>\n<ul>\n<li><b>\u30ad\u30fc\u304c\u6587\u5b57\u5217\u306a\u3089\u5024\u304c\u4e0a\u66f8\u304d\u3055\u308c\u307e\u3059\u3002<\/b><\/li>\n<li><b>\u30ad\u30fc\u304c\u6570\u5024\u306a\u3089\u5024\u306f\u4e0a\u66f8\u304d\u3055\u308c\u305a\u3001\u6dfb\u5b57\u756a\u53f7\u304c\u632f\u308a\u76f4\u3055\u308c\u307e\u3059\u3002<\/b><\/li>\n<li><b>\u6dfb\u5b57\u914d\u5217\u306e\u6dfb\u5b57\u756a\u53f7\u306f\u300c\u5024\u304c\u5c0f\u3055\u3044\u9806\u300d\u3067\u306f\u306a\u304f\u300c\u5ba3\u8a00\u3055\u308c\u305f\u9806\u300d\u3068\u306a\u308a\u307e\u3059\u3002<\/b><\/li>\n<\/ul>\n<\/div>\n<pre class=\"lang:php decode:true \">$array1 = ['color'=&gt;'red', 10=&gt;1, 0=&gt;2];\r\n$array2 = ['a', 'b', 'color'=&gt;'', 3];\r\n$array = array_merge($array1, $array2);\r\n \r\nprint_r($array);<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">Array\r\n(\r\n    [color] =&gt; \r\n    [0] =&gt; 1\r\n    [1] =&gt; 2\r\n    [2] =&gt; a\r\n    [3] =&gt; b\r\n    [4] =&gt; 3\r\n)<\/pre>\n<p>array_merge_recursive\u95a2\u6570\u306f\u914d\u5217\u540c\u58eb\u3092\u7d50\u5408\u3059\u308b\u3068\u304d\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002array_merge()\u95a2\u6570\u3068\u6bd4\u3079\u3066\u30ad\u30fc\u304c\u6587\u5b57\u5217\u306a\u3089\u5024\u304c\u4e0a\u66f8\u304d\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>Array\u3068\u3057\u3066\u683c\u7d0d\u3055\u308c\u308b\u70b9\u304c\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">$array1 = ['color'=&gt;'red', 10=&gt;1, 0=&gt;2];\r\n$array2 = ['a', 'b', 'color'=&gt;'', 3];\r\n$array = array_merge_recursive($array1, $array2);\r\n \r\nprint_r($array);<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">Array\r\n(\r\n    [color] =&gt; Array\r\n        (\r\n            [0] =&gt; red\r\n            [1] =&gt; \r\n        )\r\n\r\n    [0] =&gt; 1\r\n    [1] =&gt; 2\r\n    [2] =&gt; a\r\n    [3] =&gt; b\r\n    [4] =&gt; 3\r\n)<\/pre>\n<p>array_push\u95a2\u6570\u306f\u4e00\u3064\u4ee5\u4e0a\u306e\u8981\u7d20\u3092\u914d\u5217\u306e\u6700\u5f8c\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">$array = ['apple', 'orange'];\r\narray_push($array, 'banana', 'melon');\r\n \r\nprint_r($array);<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">Array\r\n(\r\n    [0] =&gt; apple\r\n    [1] =&gt; orange\r\n    [2] =&gt; banana\r\n    [3] =&gt; melon\r\n)<\/pre>\n<h3>\u914d\u5217\u306e\u5024\u3092\u7f6e\u63db\u3057\u3088\u3046<\/h3>\n<p>\u3053\u3053\u3067\u306f\u300cArray_replace\u300d\u3092\u4f7f\u7528\u3057\u3066\u914d\u5217\u306e\u5024\u3092\u7f6e\u63db\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002array_replace\u95a2\u6570\u306f\u7f6e\u63db\u5bfe\u8c61\u306e\u6587\u5b57\u5217\u304c\u914d\u5217\u306b\u5b58\u5728\u3057\u305f\u5834\u5408\u3001\u7f6e\u63db\u3059\u308b\u6587\u5b57\u5217\u306b\u7f6e\u304d\u63db\u3048\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true\">$sports = [\r\n            'Baseball'=&gt;'\u91ce\u7403',\r\n            'Badminton'=&gt;'\u30d0\u30c9\u30df\u30f3\u30c8\u30f3',\r\n            'Basketball'=&gt;'\u30d0\u30b9\u30b1\u30c3\u30c8\u30dc\u30fc\u30eb'\r\n          ];\r\n \r\n$newSport = [\r\n            'Badminton'=&gt;'\u30d0\u30c9',\r\n            'pickleball'=&gt;'\u30d4\u30c3\u30af\u30eb\u30dc\u30fc\u30eb'\r\n           ];\r\n \r\n$sports = array_replace($sports, $newSport);\r\n\r\nprint_r($sports);<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">Array\r\n(\r\n    [Baseball] =&gt; \u91ce\u7403\r\n    [Badminton] =&gt; \u30d0\u30c9\r\n    [Basketball] =&gt; \u30d0\u30b9\u30b1\u30c3\u30c8\u30dc\u30fc\u30eb\r\n    [pickleball] =&gt; \u30d4\u30c3\u30af\u30eb\u30dc\u30fc\u30eb\r\n)<\/pre>\n<h3>\u914d\u5217\u306e\u5024\u3092\u4e26\u3073\u66ff\u3048\u3088\u3046<\/h3>\n<p>sort\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u914d\u5217\u306e\u4e26\u3073\u66ff\u3048\uff08\u30bd\u30fc\u30c8\uff09\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u914d\u5217\u306b\u5bfe\u3057\u3066sort\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u6607\u9806\u3067\u30bd\u30fc\u30c8\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true\">$numVal = [100,35,77,1,5];\r\nsort($numVal);\r\nprint_r($numVal);<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">Array\r\n(\r\n    [0] =&gt; 1\r\n    [1] =&gt; 5\r\n    [2] =&gt; 35\r\n    [3] =&gt; 77\r\n    [4] =&gt; 100\r\n)<\/pre>\n<p>\u4e3b\u306b\u9023\u60f3\u914d\u5217\u306e\u30bd\u30fc\u30c8\u3068\u3057\u3066\u306f\u4e0b\u8a18\u304c\u3088\u304f\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n\n<table id=\"tablepress-749\" class=\"tablepress tablepress-id-749\">\n<tbody>\n<tr class=\"row-1\">\n\t<td class=\"column-1\">\u30e1\u30bd\u30c3\u30c9<\/td><td class=\"column-2\">\u8aac\u660e<\/td>\n<\/tr>\n<tr class=\"row-2\">\n\t<td class=\"column-1\">ksort<\/td><td class=\"column-2\">\u30ad\u30fc\u3068\u30c7\u30fc\u30bf\u306e\u95a2\u4fc2\u3092\u7dad\u6301\u3057\u3064\u3064\u3001\u914d\u5217\u3092\u30ad\u30fc\u3067\u6607\u9806\u30bd\u30fc\u30c8\u3059\u308b\u3002<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">krsort<\/td><td class=\"column-2\">\u30ad\u30fc\u3068\u30c7\u30fc\u30bf\u306e\u95a2\u4fc2\u3092\u7dad\u6301\u3057\u3064\u3064\u3001\u914d\u5217\u3092\u30ad\u30fc\u3067\u964d\u9806\u30bd\u30fc\u30c8\u3059\u308b\u3002<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">asort<\/td><td class=\"column-2\">\u30ad\u30fc\u3068\u30c7\u30fc\u30bf\u306e\u95a2\u4fc2\u3092\u7dad\u6301\u3057\u3064\u3064\u3001\u914d\u5217\u3092\u5024\u3067\u6607\u9806\u30bd\u30fc\u30c8\u3059\u308b\u3002<\/td>\n<\/tr>\n<tr class=\"row-5\">\n\t<td class=\"column-1\">krsort<\/td><td class=\"column-2\">\u30ad\u30fc\u3068\u30c7\u30fc\u30bf\u306e\u95a2\u4fc2\u3092\u7dad\u6301\u3057\u3064\u3064\u3001\u914d\u5217\u3092\u5024\u3067\u964d\u9806\u30bd\u30fc\u30c8\u3059\u308b\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n<h3>\u914d\u5217\u306e\u5024\u3092\u62bd\u51fa\u3057\u3088\u3046<\/h3>\n<p>array_filter\u95a2\u6570\u306f\u3001\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u914d\u5217\u306e\u8981\u7d20\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">\/\/ \u304f\u3060\u3082\u306e\u306e\u914d\u5217\r\n$fruits = [\r\n            'orange' =&gt; 100,\r\n            'banana'   =&gt; 200,\r\n            'apple' =&gt; 150\r\n          ];\r\n \r\n\/\/ \u30d5\u30a3\u30eb\u30bf\u30fc\u306e\u95be\u5024\u3092\u30bb\u30c3\u30c8\r\n$filter_age = 150;\r\n\/*\r\n* \u30d5\u30a3\u30eb\u30bf\u30fc\u306e\u6761\u4ef6\uff08\u7121\u540d\u95a2\u6570\uff09\u3092\u30bb\u30c3\u30c8\r\n* \u95a2\u6570\u306e\u30ea\u30bf\u30fc\u30f3\u5024\u304c true \u5834\u5408\u3001\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u5f8c\u306e\u7d50\u679c\u30bb\u30c3\u30c8\u306b\u683c\u7d0d\u3055\u308c\u308b\r\n*\/\r\n$fruits_func = function ($value) use ($filter_age) {\r\n  return ($value &gt;= $filter_age);\r\n};\r\n \r\n$result = array_filter($fruits, $fruits_func);\r\nprint_r($result);<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">Array\r\n(\r\n    [0] =&gt; 1\r\n    [1] =&gt; 5\r\n    [2] =&gt; 35\r\n    [3] =&gt; 77\r\n    [4] =&gt; 100\r\n)<\/pre>\n<h2>PHP\u306b\u3064\u3044\u3066\u3082\u3063\u3068\u5b66\u3073\u305f\u3044\u65b9\u3078<\/h2>\n<p>\u3053\u3053\u3067\u306f\u3001PHP\u306e\u914d\u5217(Array)\u306b\u3064\u3044\u3066\u57fa\u790e\u306e\u57fa\u790e\u304b\u3089\u89e3\u8aac\u3057\u3066\u304d\u307e\u3057\u305f\u3002\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u8eab\u306b\u3064\u3051\u308b\u305f\u3081\u306b\u306f\u3001\u305f\u304f\u3055\u3093\u306e\u30c8\u30e9\u30a4\u30fb\u30a2\u30f3\u30c9\u30fb\u30a8\u30e9\u30fc\u304c\u5fc5\u8981\u3067\u3059\u3002\u3057\u304b\u3057\u3001PHP\u306f\u3067\u304d\u308b\u3053\u3068\u304c\u305f\u304f\u3055\u3093\u3042\u308b\u5206\u3001\u975e\u5e38\u306b\u5965\u306e\u6df1\u3044\u8a00\u8a9e\u3067\u3059\u3002<\/p>\n<p><div class=\"box_voice\"><br \/>\nPHP\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u3082\u3063\u3068\u3088\u304f\u77e5\u308a\u305f\u3044<br \/>\nPHP\u306e\u30b9\u30ad\u30eb\u3092\u8eab\u306b\u7740\u3051\u3089\u308c\u308b\u304b\u4e0d\u5b89\u30fb\u30fb\u30fb<br \/>\nPHP\u3092\u4f53\u7cfb\u7684\u306b\u52c9\u5f37\u3057\u305f\u3044<br \/>\n<\/div><\/p>\n<p>\u3068\u611f\u3058\u3066\u3044\u308b\u65b9\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3082\u5408\u308f\u305b\u3066\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>PHP\u306e\u6982\u8981\u304b\u3089\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u307e\u3067\u7db2\u7f85\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u304d\u3063\u3068\u53c2\u8003\u306b\u306a\u308b\u306e\u3067\u306f\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/curriculums-php?cid=menu\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2021\/04\/c400554895fa9ebe43f3fff894ba03f1.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">PHP\u3092\u72ec\u5b66\uff01\u521d\u5fc3\u8005\u5fc5\u8aad\u306e\u5b66\u7fd2\u30ed\u30fc\u30c9\u30de\u30c3\u30d7\u3084\u52b9\u679c\u7684\u306a\u52c9\u5f37\u6cd5<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e746\u670811\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<h2>PHP\u3092\u7d99\u7d9a\u7684\u306b\u5b66\u7fd2\u3059\u308b\u30b3\u30c4<\/h2>\n<p>PHP\u306e\u5b66\u7fd2\u3092\u3057\u3066\u3044\u3066\u3001\u308f\u304b\u3089\u306a\u3044\u3068\u3053\u308d\u304c\u591a\u304f\u4f55\u56de\u3082\u8abf\u3079\u306a\u304c\u3089\u3084\u308b\u306e\u306f\u6b63\u76f4\u3001\u5acc\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3088\u306d\u3002\u305d\u3053\u3067\u3001\u3069\u306e\u3088\u3046\u306b\u3059\u308c\u3070\u7d99\u7d9a\u7684\u306b\u5b66\u7fd2\u3092\u7d9a\u3051\u3066\u884c\u3051\u308b\u306e\u304b\u305d\u306e\u30b3\u30c4\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h3>\u76ee\u7684\u3092\u660e\u78ba\u306b\u3059\u308b<\/h3>\n<p>\u307e\u305a\u306f\u3001\u306a\u305cPHP\u3092\u5b66\u3093\u3067\u3044\u308b\u306e\u304b\u660e\u78ba\u306b\u3057\u307e\u3057\u3087\u3046\u3002\u4f8b\u3048\u3070\u3001PHP\u3092\u5b66\u3093\u3067<br \/>\n<div class=\"box01\"><\/p>\n<ul>\n<li><strong>Web\u30b5\u30a4\u30c8\u304c\u4f5c\u308a\u305f\u3044<\/strong><\/li>\n<li><strong>WordPress\u306e\u7de8\u96c6\u304c\u3057\u305f\u3044<\/strong><\/li>\n<li><strong>\u30a8\u30f3\u30b8\u30cb\u30a2\u3068\u3057\u3066\u8ee2\u8077\u3057\u305f\u3044<\/strong><\/li>\n<li><strong>\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u3092\u76ee\u6307\u3057\u305f\u3044<\/strong><\/li>\n<\/ul>\n<p><\/div><br \/>\n\u306a\u3069\u3001\u76ee\u7684\u306f\u8272\u3005\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u76ee\u7684\u3092\u660e\u78ba\u306b\u3059\u308b\u3053\u3068\u304c\u3068\u3066\u3082\u5927\u4e8b\u3067\u3001PHP\u3092\u5b66\u3076\u5b66\u7fd2\u610f\u6b32\u306b\u7e4b\u304c\u3063\u3066\u3044\u304d\u307e\u3059\u3002\u76ee\u7684\u304c\u306a\u3044\u307e\u307e\u5b66\u7fd2\u3092\u3057\u3066\u3044\u308b\u3068\u3001\u5b66\u7fd2\u3059\u308b\u3053\u3068\u81ea\u4f53\u304c\u76ee\u7684\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u3001\u30b4\u30fc\u30eb\u306e\u306a\u3044\u679c\u3066\u3057\u306a\u3044\u9053\u3092\u9032\u3080\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u305d\u306e\u7d50\u679c\u3001\u632b\u6298\u3057\u3066\u3057\u307e\u3046\u4eba\u304c\u591a\u3044\u306e\u304c\u73fe\u72b6\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3046\u306a\u3089\u306a\u3044\u305f\u3081\u306b\u3082\u3001PHP\u3092\u5b66\u3076\u76ee\u7684\u306f\u8a00\u3048\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002\u3082\u3057\u8a00\u3048\u306a\u3044\u5834\u5408\u306f\u3001\u5b66\u3076\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u81ea\u4f53\u9593\u9055\u3063\u3066\u3044\u308b\u53ef\u80fd\u6027\u3082\u3042\u308a\u307e\u3059\u3002\u306a\u306e\u3067\u3001\u3057\u3063\u304b\u308a\u76ee\u7684\u304b\u3089\u5b66\u3093\u3067\u3044\u308b\u8a00\u8a9e\u304c\u3042\u3063\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u5b66\u7fd2\u30d7\u30e9\u30f3\u3092\u6c7a\u3081\u308b<\/h3>\n<p>\u76ee\u7684\u304c\u660e\u78ba\u306b\u306a\u3063\u305f\u3089\u3001\u6b21\u306b\u5b66\u7fd2\u30d7\u30e9\u30f3\u3092\u7acb\u3066\u307e\u3057\u3087\u3046\u3002\u3053\u306e\u5b66\u7fd2\u30d7\u30e9\u30f3\u3092\u7acb\u3066\u305a\u306b\u5b66\u7fd2\u3057\u3066\u3044\u308b\u4eba\u304c\u591a\u3044\u306e\u3067\u3059\u304c\u3001\u5b66\u7fd2\u30d7\u30e9\u30f3\u304c\u306a\u3044\u3068\u81ea\u5206\u304c\u4eca\u3069\u306e\u304f\u3089\u3044\u9032\u3093\u3067\u3044\u3066\u3001\u5f8c\u3069\u306e\u304f\u3089\u3044\u5b66\u7fd2\u3092\u3059\u308c\u3070\u3044\u3044\u306e\u304b\u898b\u3048\u306a\u3044\u306e\u3067\u3001\u5b66\u7fd2\u3092\u3059\u308b\u3053\u3068\u81ea\u4f53\u304c\u304d\u3064\u304f\u9577\u7d9a\u304d\u3057\u307e\u305b\u3093\u3002<\/p>\n<p>\u5b66\u7fd2\u3092\u7d99\u7d9a\u7684\u306b\u7d9a\u3051\u308b\u305f\u3081\u306b\u306f\u5b66\u7fd2\u30d7\u30e9\u30f3\u306f\u5fc5\u9808\u3068\u3082\u8a00\u3048\u307e\u3059\u3002\u3044\u3064\u307e\u3067\u306b\u3001\u3069\u306e\u30ec\u30d9\u30eb\u306b\u306a\u3063\u3066\u3044\u3066\u3001\u6700\u7d42\u7684\u306a\u30b4\u30fc\u30eb\u306f\u3044\u3064\u9054\u6210\u3059\u308b\u306e\u304b\u306f\u3057\u3063\u304b\u308a\u6c7a\u3081\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u5148\u751f\u3092\u898b\u3064\u3051\u308b<\/h3>\n<p>\u300c\u4f55\u5ea6\u3082\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3001\u81ea\u5206\u3067\u8abf\u3079\u3066\u306f\u4fee\u6b63\u3059\u308b\u300d\u3053\u306e\u7e70\u308a\u8fd4\u3057\u304cPHP\u3092\u5b66\u7fd2\u3057\u3066\u3044\u308b\u3068\u8d77\u3053\u308a\u307e\u3059\u3002\u8abf\u3079\u3066\u3082\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u3057\u3001\u6642\u9593\u3082\u304b\u304b\u3063\u3066\u3057\u307e\u3063\u3066\u30d7\u30e9\u30f3\u901a\u308a\u306b\u5b66\u7fd2\u304c\u9032\u307e\u306a\u3044\u3068\u3044\u3046\u306e\u306f\u5f53\u7136\u306e\u3088\u3046\u306b\u8d77\u3053\u308a\u307e\u3059\u3002<\/p>\n<p><div class=\"box_voice\">\u8abf\u3079\u3066\u76f4\u3057\u305f\u3051\u3069\u3046\u307e\u304f\u52d5\u304b\u306a\u3044\u3057\u3069\u3046\u306a\u3063\u3066\u3093\u306e<\/div><br \/>\n\u3053\u306e\u3088\u3046\u306b\u601d\u3044\u3001\u5b66\u7fd2\u3092\u3059\u308b\u3053\u3068\u81ea\u4f53\u306b\u5acc\u6c17\u304c\u6307\u3057\u3066\u632b\u6298\u3057\u3066\u3057\u307e\u3046\u4eba\u3082\u591a\u3044\u3067\u3059\u3002<\/p>\n<p>\u305d\u3046\u306a\u3089\u306a\u3044\u305f\u3081\u306b\u3082\u3001\u300c\u5148\u751f\u300d\u3092\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u5927\u4e8b\u306b\u306a\u308a\u307e\u3059\u3002\u5148\u751f\u3068\u8a00\u3063\u3066\u3082\u305d\u3046\u7c21\u5358\u306b\u63a2\u305b\u305d\u3046\u306b\u306a\u3044\u3067\u3059\u3088\u306d\u3002\u6700\u8fd1\u3067\u306fSNS\u3067\u3082\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u30fc\u304c\u5897\u3048\u3001\u76f8\u8ac7\u3057\u3084\u3059\u3044\u74b0\u5883\u304c\u5897\u3048\u3066\u304d\u3066\u3044\u307e\u3059\u3002\u3053\u3046\u3044\u3063\u305f\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u30fc\u3084\u52c9\u5f37\u4f1a\u3092\u5229\u7528\u3057\u3066\u5148\u751f\u3092\u898b\u3064\u3051\u308b\u306e\u3082\u4e00\u3064\u306e\u624b\u3067\u3059\u3002<\/p>\n<h3>\u81ea\u5206\u306b\u6295\u8cc7\u3059\u308b\u3053\u3068\u3082\u5927\u4e8b<\/h3>\n<p>\u5b66\u7fd2\u30b5\u30a4\u30c8\u3084\u30a2\u30d7\u30ea\u306a\u3069\u3001\u7121\u6599\u3067\u5b66\u7fd2\u3067\u304d\u308b\u74b0\u5883\u304c\u6574\u3063\u3066\u306f\u3044\u308b\u3082\u306e\u306e\u81ea\u5206\u306b\u6295\u8cc7\u3057\u3066\u5b66\u7fd2\u3092\u3059\u308b\u3053\u3068\u3082\u5927\u4e8b\u3067\u3059\u3002\u672c\u3084\u6709\u6599\u5b66\u7fd2\u30b5\u30a4\u30c8\u306f\u3001\u7121\u6599\u3067\u306f\u5b66\u3079\u306a\u3044\u7bc4\u56f2\u306e\u5b66\u7fd2\u3084\u6a5f\u80fd\u304c\u4ed8\u3044\u3066\u3044\u308b\u306e\u3067\u3001\u52b9\u7387\u7684\u306b\u5b66\u7fd2\u3092\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u6295\u8cc7\u306e\u3082\u3046\u4e00\u3064\u306e\u65b9\u6cd5\u304c\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3067\u5b66\u3076\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u72ec\u5b66\u3068\u9055\u3044\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3067\u306f\u4e0a\u3067\u7d39\u4ecb\u3057\u305f\u5b66\u7fd2\u3092\u7d99\u7d9a\u3059\u308b\u305f\u3081\u306e\u30b5\u30dd\u30fc\u30c8\u304c\u5fb9\u5e95\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u6700\u3082\u52b9\u7387\u306e\u826f\u3044\u5b66\u3073\u65b9\u3068\u8a00\u3048\u308b\u3067\u3057\u3087\u3046\u3002\u5148\u751f\u3082\u81ea\u5206\u3067\u63a2\u3059\u5fc5\u8981\u304c\u306a\u3044\u306e\u3067\u3001\u30a8\u30e9\u30fc\u306a\u3069\u3067\u8e93\u3044\u3066\u6642\u9593\u304c\u304b\u304b\u308b\u5fc3\u914d\u3082\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3067\u3059\u304c\u3001\u5f53\u7136\u3044\u304d\u306a\u308a\u30b9\u30af\u30fc\u30eb\u306b\u5165\u308b\u306e\u306f\u62b5\u6297\u304c\u3042\u308a\u307e\u3059\u3088\u306d\u3002<\/p>\n<p>\u305d\u306e\u5834\u5408\u306f\u3001\u5f0a\u793e\u3067\u884c\u3063\u3066\u3044\u308b\u7121\u6599\u30ab\u30a6\u30f3\u30bb\u30ea\u30f3\u30b0\u3078\u53c2\u52a0\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u7121\u6599\u30ab\u30a6\u30f3\u30bb\u30ea\u30f3\u30b0\u3067\u306f\u3001\u306a\u305cPHP\u3092\u5b66\u3076\u306e\u304b\u305d\u306e\u76ee\u7684\u3092\u30d2\u30a2\u30ea\u30f3\u30b0\u3057\u3066\u3001\u672c\u5f53\u306bPHP\u3092\u5b66\u3076\u3079\u304d\u306a\u306e\u304b\u3001\u305d\u306e\u5b66\u7fd2\u30d7\u30e9\u30f3\u306f\u3069\u306e\u3088\u3046\u306b\u7acb\u3066\u308b\u306e\u304b\u306a\u3069\u306e\u63d0\u6848\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u76ee\u7684\u3092\u30d2\u30a2\u30ea\u30f3\u30b0\u3059\u308b\u3053\u3068\u3067\u3001\u3042\u306a\u305f\u306b\u6700\u9069\u306a\u8a00\u8a9e\u3084\u5b66\u7fd2\u30d7\u30e9\u30f3\u304c\u5206\u304b\u308b\u306e\u3067\u3001\u6700\u901f\u3067\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u76ee\u6307\u305b\u308b\u30a4\u30e1\u30fc\u30b8\u304c\u308f\u304d\u307e\u3059\u3002<\/p>\n<p>\u624b\u8efd\u306b\u3057\u304b\u3082\u30aa\u30f3\u30e9\u30a4\u30f3\u3067\u3082\u53d7\u3051\u3089\u308c\u308b\u306e\u3067\u3001\u305c\u3072\u4e00\u5ea6\u76ee\u7684\u3092\u660e\u78ba\u306b\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n    <a class=\"sc_button2\" href=\"https:\/\/calendar.sejuku.net\/?cid=btn_11981_direct\">\u7121\u6599\u30ab\u30a6\u30f3\u30bb\u30ea\u30f3\u30b0\u306b\u7533\u3057\u8fbc\u3080<\/a>\n    \n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u4eca\u56de\u306fPHP\u306e\u914d\u5217(Array)\u306b\u3064\u3044\u3066\u3001\u914d\u5217\u306e\u4ed5\u7d44\u307f\u304b\u3089\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u30fb\u5fdc\u7528\u7684\u306a\u4f7f\u3044\u65b9\u306a\u3069\u7db2\u7f85\u7684\u306b\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002\u914d\u5217\u306f\u899a\u3048\u3066\u3057\u307e\u3048\u3070\u3068\u3066\u3082\u4fbf\u5229\u306a\u3082\u306e\u3067\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u3063\u305f\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u914d\u5217\u3067\u3067\u304d\u308b\u3053\u3068\u306f\u975e\u5e38\u306b\u591a\u304f\u3001<b>\u5b9f\u969b\u306e\u696d\u52d9\u3067\u306f\u914d\u5217\u3092\u99c6\u4f7f\u3057\u3066\u3055\u307e\u3056\u307e\u306a\u51e6\u7406<\/b>\u3092\u884c\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u306f\u3057\u3063\u304b\u308a\u3068\u30de\u30b9\u30bf\u30fc\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP\u306e\u52c9\u5f37\u3092\u59cb\u3081\u305f\u3051\u3069\u3001\u914d\u5217\u306e\u4f7f\u3044\u65b9\u304c\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u30fb\u30fb\u30fb \u914d\u5217\u306f\u3069\u306e\u3088\u3046\u306a\u7528\u9014\u3067\u4f7f\u3048\u3070\u3044\u3044\u306e\uff1f\u5909\u6570\u3068\u306e\u9055\u3044\u306f\u306a\u306b\uff1f \u914d\u5217\u3092\u52b9\u7387\u3088\u304f\u899a\u3048\u305f\u3044\u3051\u3069\u4f55\u304b\u826f\u3044\u65b9\u6cd5\u306f\u306a\u3044\u304b\u306a\uff1f PHP\u306e\u52c9\u5f37\u3092\u59cb\u3081\u305f\u3070\u304b\u308a\u306e\u521d\u5b66\u8005\u304c\u3001\u6700\u521d\u306b\u3064\u307e [&hellip;]<\/p>\n","protected":false},"author":16433,"featured_media":64982,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"swell_btn_cv_data":"","footnotes":""},"categories":[2348],"tags":[38],"class_list":["post-11981","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php-study","tag-php"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>10\u5206\u3067\u4e38\u308f\u304b\u308a\uff01PHP\u306e\u914d\u5217(array)\u306e\u57fa\u790e\u304b\u3089\u5fdc\u7528\u307e\u3067\u89e3\u8aac | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c 10\u5206\u3067\u4e38\u308f\u304b\u308a\uff01PHP\u306e\u914d\u5217(array)\u306e\u57fa\u790e\u304b\u3089\u5fdc\u7528\u307e\u3067\u89e3\u8aac \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sejuku.net\/blog\/11981\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"10\u5206\u3067\u4e38\u308f\u304b\u308a\uff01PHP\u306e\u914d\u5217(array)\u306e\u57fa\u790e\u304b\u3089\u5fdc\u7528\u307e\u3067\u89e3\u8aac | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c 10\u5206\u3067\u4e38\u308f\u304b\u308a\uff01PHP\u306e\u914d\u5217(array)\u306e\u57fa\u790e\u304b\u3089\u5fdc\u7528\u307e\u3067\u89e3\u8aac \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sejuku.net\/blog\/11981\" \/>\n<meta property=\"og:site_name\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sejuku2013\" \/>\n<meta property=\"article:published_time\" content=\"2016-11-14T08:27:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-06T02:39:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/06\/php_eye_new.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@samuraijuku\" \/>\n<meta name=\"twitter:site\" content=\"@samuraijuku\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/11981#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/11981\"},\"author\":{\"name\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/d20c57b59dba15001519a8a671183095\"},\"headline\":\"10\u5206\u3067\u4e38\u308f\u304b\u308a\uff01PHP\u306e\u914d\u5217(array)\u306e\u57fa\u790e\u304b\u3089\u5fdc\u7528\u307e\u3067\u89e3\u8aac\",\"datePublished\":\"2016-11-14T08:27:37+00:00\",\"dateModified\":\"2024-05-06T02:39:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/11981\"},\"wordCount\":247,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/11981#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/06\\\/php_eye_new.jpg\",\"keywords\":[\"PHP\"],\"articleSection\":[\"PHP\u5b66\u7fd2\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/11981\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/11981\",\"name\":\"10\u5206\u3067\u4e38\u308f\u304b\u308a\uff01PHP\u306e\u914d\u5217(array)\u306e\u57fa\u790e\u304b\u3089\u5fdc\u7528\u307e\u3067\u89e3\u8aac | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/11981#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/11981#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/06\\\/php_eye_new.jpg\",\"datePublished\":\"2016-11-14T08:27:37+00:00\",\"dateModified\":\"2024-05-06T02:39:50+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c 10\u5206\u3067\u4e38\u308f\u304b\u308a\uff01PHP\u306e\u914d\u5217(array)\u306e\u57fa\u790e\u304b\u3089\u5fdc\u7528\u307e\u3067\u89e3\u8aac \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/11981#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/11981\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/11981#primaryimage\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/06\\\/php_eye_new.jpg\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/06\\\/php_eye_new.jpg\",\"width\":700,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/11981#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"10\u5206\u3067\u4e38\u308f\u304b\u308a\uff01PHP\u306e\u914d\u5217(array)\u306e\u57fa\u790e\u304b\u3089\u5fdc\u7528\u307e\u3067\u89e3\u8aac\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"description\":\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\",\"name\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"width\":600,\"height\":600,\"caption\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\",\"https:\\\/\\\/x.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\\\/featured\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/d20c57b59dba15001519a8a671183095\",\"name\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"caption\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\"},\"description\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u587e\u306f\u300c\u4eba\u751f\u3092\u5909\u3048\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u300d\u3092\u30b3\u30f3\u30bb\u30f3\u30d7\u30c8\u306b\u3001\u904e\u53bb\u591a\u304f\u306e\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u8f29\u51fa\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3067\u3059\u3002\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\u3067\u306f\u6280\u8853\u7cfb\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4e2d\u5fc3\u306b\u6709\u7528\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u304d\u307e\u3059\u3002\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/author\\\/samurai-tech\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"10\u5206\u3067\u4e38\u308f\u304b\u308a\uff01PHP\u306e\u914d\u5217(array)\u306e\u57fa\u790e\u304b\u3089\u5fdc\u7528\u307e\u3067\u89e3\u8aac | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c 10\u5206\u3067\u4e38\u308f\u304b\u308a\uff01PHP\u306e\u914d\u5217(array)\u306e\u57fa\u790e\u304b\u3089\u5fdc\u7528\u307e\u3067\u89e3\u8aac \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sejuku.net\/blog\/11981","og_locale":"ja_JP","og_type":"article","og_title":"10\u5206\u3067\u4e38\u308f\u304b\u308a\uff01PHP\u306e\u914d\u5217(array)\u306e\u57fa\u790e\u304b\u3089\u5fdc\u7528\u307e\u3067\u89e3\u8aac | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c 10\u5206\u3067\u4e38\u308f\u304b\u308a\uff01PHP\u306e\u914d\u5217(array)\u306e\u57fa\u790e\u304b\u3089\u5fdc\u7528\u307e\u3067\u89e3\u8aac \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","og_url":"https:\/\/www.sejuku.net\/blog\/11981","og_site_name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/sejuku2013","article_published_time":"2016-11-14T08:27:37+00:00","article_modified_time":"2024-05-06T02:39:50+00:00","og_image":[{"width":700,"height":400,"url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/06\/php_eye_new.jpg","type":"image\/jpeg"}],"author":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","twitter_card":"summary_large_image","twitter_creator":"@samuraijuku","twitter_site":"@samuraijuku","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sejuku.net\/blog\/11981#article","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/11981"},"author":{"name":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/d20c57b59dba15001519a8a671183095"},"headline":"10\u5206\u3067\u4e38\u308f\u304b\u308a\uff01PHP\u306e\u914d\u5217(array)\u306e\u57fa\u790e\u304b\u3089\u5fdc\u7528\u307e\u3067\u89e3\u8aac","datePublished":"2016-11-14T08:27:37+00:00","dateModified":"2024-05-06T02:39:50+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/11981"},"wordCount":247,"publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/11981#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/06\/php_eye_new.jpg","keywords":["PHP"],"articleSection":["PHP\u5b66\u7fd2"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.sejuku.net\/blog\/11981","url":"https:\/\/www.sejuku.net\/blog\/11981","name":"10\u5206\u3067\u4e38\u308f\u304b\u308a\uff01PHP\u306e\u914d\u5217(array)\u306e\u57fa\u790e\u304b\u3089\u5fdc\u7528\u307e\u3067\u89e3\u8aac | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/11981#primaryimage"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/11981#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/06\/php_eye_new.jpg","datePublished":"2016-11-14T08:27:37+00:00","dateModified":"2024-05-06T02:39:50+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c 10\u5206\u3067\u4e38\u308f\u304b\u308a\uff01PHP\u306e\u914d\u5217(array)\u306e\u57fa\u790e\u304b\u3089\u5fdc\u7528\u307e\u3067\u89e3\u8aac \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","breadcrumb":{"@id":"https:\/\/www.sejuku.net\/blog\/11981#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sejuku.net\/blog\/11981"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/11981#primaryimage","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/06\/php_eye_new.jpg","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/06\/php_eye_new.jpg","width":700,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.sejuku.net\/blog\/11981#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sejuku.net\/blog\/"},{"@type":"ListItem","position":2,"name":"10\u5206\u3067\u4e38\u308f\u304b\u308a\uff01PHP\u306e\u914d\u5217(array)\u306e\u57fa\u790e\u304b\u3089\u5fdc\u7528\u307e\u3067\u89e3\u8aac"}]},{"@type":"WebSite","@id":"https:\/\/www.sejuku.net\/blog\/#website","url":"https:\/\/www.sejuku.net\/blog\/","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002","publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sejuku.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.sejuku.net\/blog\/#organization","name":"\u682a\u5f0f\u4f1a\u793eSAMURAI","url":"https:\/\/www.sejuku.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","width":600,"height":600,"caption":"\u682a\u5f0f\u4f1a\u793eSAMURAI"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/sejuku2013","https:\/\/x.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g\/featured"]},{"@type":"Person","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/d20c57b59dba15001519a8a671183095","name":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","caption":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8"},"description":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u587e\u306f\u300c\u4eba\u751f\u3092\u5909\u3048\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u300d\u3092\u30b3\u30f3\u30bb\u30f3\u30d7\u30c8\u306b\u3001\u904e\u53bb\u591a\u304f\u306e\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u8f29\u51fa\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3067\u3059\u3002\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\u3067\u306f\u6280\u8853\u7cfb\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4e2d\u5fc3\u306b\u6709\u7528\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u304d\u307e\u3059\u3002","url":"https:\/\/www.sejuku.net\/blog\/author\/samurai-tech"}]}},"_links":{"self":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/11981","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/users\/16433"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/comments?post=11981"}],"version-history":[{"count":0,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/11981\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media\/64982"}],"wp:attachment":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media?parent=11981"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/categories?post=11981"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/tags?post=11981"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}