{"id":25441,"date":"2017-06-20T13:21:07","date_gmt":"2017-06-20T04:21:07","guid":{"rendered":"http:\/\/www.sejuku.net\/blog\/?p=25441"},"modified":"2024-05-06T11:43:20","modified_gmt":"2024-05-06T02:43:20","slug":"%e3%80%90php%e5%85%a5%e9%96%80%e3%80%91%e6%96%87%e5%ad%97%e5%88%97%e3%81%ae%e6%a4%9c%e7%b4%a2%e6%96%b9%e6%b3%95%e3%81%be%e3%81%a8%e3%82%81","status":"publish","type":"post","link":"https:\/\/www.sejuku.net\/blog\/25441","title":{"rendered":"strpos\u3084mb_strpos\u3092\u4f7f\u3044\u6587\u5b57\u5217\u3092\u691c\u7d22\u3092\u3057\u3066\u307f\u3088\u3046!\u3000\uff5ePHP\u5165\u9580\uff5e"},"content":{"rendered":"<p>PHP\u3067\u306f\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b\u305f\u3081\u306e\u95a2\u6570\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u3069\u3093\u306a\u95a2\u6570\u3092\u4f7f\u3046\u3079\u304d\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>\u307e\u305f\u3001\u65e5\u672c\u8a9e\u304c\u6df7\u3056\u3063\u305f\u6587\u5b57\u5217\u3068\u82f1\u6570\u5b57\u3060\u3051\u306e\u6587\u5b57\u5217\u3067\u306f\u4f7f\u3046\u95a2\u6570\u304c\u9055\u3046\u306e\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>\u4eca\u56de\u3067\u306f<span style=\"color: #339966;\"><strong>strpos\u95a2\u6570<\/strong><\/span>\u3068<span style=\"color: #339966;\"><strong>mb_strpos\u95a2\u6570<\/strong><\/span>\u3092\u30e1\u30a4\u30f3\u306b\u89e3\u8aac\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f<\/p>\n<div style=\"padding: 10px 5px 10px 20px; margin-bottom: 20px; border: 2px solid #ffe4e2;\"><span style=\"color: #339966;\"><strong>\uff3b\u57fa\u790e\uff3d<\/strong><\/span>\u3000strpos\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b\u65b9\u6cd5<br \/>\n<span style=\"color: #339966;\"><strong>\uff3b\u57fa\u790e\uff3d<\/strong><\/span>\u3000mb_strpos\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u30de\u30eb\u30c1\u30d0\u30a4\u30c8\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b\u65b9\u6cd5<br \/>\n<span style=\"color: #339966;\"><strong>\uff3b\u57fa\u790e\uff3d<\/strong><\/span>\u3000strstr\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b\u65b9\u6cd5<br \/>\n<span style=\"color: #0000ff;\"><strong>\uff3b\u5b9f\u8df5\uff3d<\/strong><\/span>\u3000\u914d\u5217\u5909\u6570\u306b\u5bfe\u3057\u3066strpos\u3092\u4f7f\u3044\u305f\u3044\u5834\u5408<\/div>\n<p>\u3068\u3044\u3063\u305f\u89e3\u8aac\u3092\u3057\u3066\u3044\u304d\u307e\u3059\uff01<\/p>\n<h2>strpos\u3067\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b\u65b9\u6cd5<\/h2>\n<h3>strpos\u3068\u306f<\/h3>\n<p><span style=\"color: #339966;\"><strong>strpos<\/strong><\/span>\u95a2\u6570\u306f\u691c\u7d22\u6587\u5b57\u5217\u304c\u898b\u3064\u304b\u3063\u305f\u3089\u3001<span style=\"color: #0000ff;\"><strong>\u898b\u3064\u304b\u3063\u305f\u6587\u5b57\u5217\u306e\u6700\u521d\u306e\u4f4d\u7f6e\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/strong><\/span><\/p>\n<p>\u66f8\u304d\u65b9\uff1a<\/p>\n<pre class=\"lang:php decode:true \">strpos ( $\u691c\u7d22\u5bfe\u8c61\u6587\u5b57\u5217 , $\u691c\u7d22\u6587\u5b57\u5217 [, $\u30aa\u30d5\u30bb\u30c3\u30c8 = 0 [, $\u6587\u5b57\u30b3\u30fc\u30c9 ]] )<\/pre>\n<p>\u4f8b\uff1a<\/p>\n<pre class=\"lang:php decode:true \">strpos ( 'World', 'Hello World' );<\/pre>\n<p>\u5f15\u6570\uff1a<br \/>\n\u7b2c\u4e00\u5f15\u6570\u306b\u306f\u691c\u7d22\u3092\u884c\u3046\u6587\u5b57\u5217\u3092\u6307\u5b9a\u3057\u3001\u7b2c\u4e8c\u5f15\u6570\u306b\u306f\u691c\u7d22\u3059\u308b\u6587\u5b57\u5217\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u691c\u7d22\u6587\u5b57\u5217\u304c\u6587\u5b57\u5217\u3067\u306f\u306a\u3044\u5834\u5408\u306f\u3001\u305d\u308c\u3092\u6574\u6570\u306b\u5909\u63db\u3057\u3066\u305d\u306e\u756a\u53f7\u3092\u6587\u5b57\u5217\u3068\u3057\u3066\u6271\u3044\u307e\u3059\u3002<\/p>\n<p>\u7b2c\u4e09\u5f15\u6570\u306e\u30aa\u30d5\u30bb\u30c3\u30c8\u306f<span style=\"color: #0000ff;\"><strong>\u691c\u7d22\u958b\u59cb\u4f4d\u7f6e\u3092\u6307\u5b9a<\/strong><\/span>\u3057\u307e\u3059\u3002\u8ca0\u306e\u6570\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u6587\u5b57\u5217\u306e\u672b\u5c3e\u304b\u3089\u305d\u306e\u6570\u3060\u3051\u623b\u3063\u305f\u4f4d\u7f6e\u304b\u3089\u691c\u7d22\u3057\u307e\u3059\u3002<\/p>\n<p>\u8fd4\u308a\u5024\uff1a<br \/>\n\u691c\u7d22\u6587\u5b57\u5217\u304c\u898b\u3064\u304b\u3063\u305f\u5834\u5408\u306f\u3001\u6587\u5b57\u5217\u306e\u5148\u982d\u304b\u3089\u306e\u76f8\u5bfe\u4f4d\u7f6e\u3092\u8fd4\u3057\u307e\u3059\u3002<br \/>\n\u3061\u306a\u307f\u306b\u3001\u6587\u5b57\u5217\u306e\u5148\u982d\u3067\u898b\u3064\u304b\u3063\u305f\u5834\u5408\u306f\u3001<span style=\"color: #ff0000;\"><strong>1\u3067\u306f\u306a\u304f0\u3092\u8fd4\u3057\u307e\u3059\u3002<\/strong><\/span><\/p>\n<h3>strpos\u306e\u4f7f\u3044\u65b9<\/h3>\n<p>\u4ee5\u4e0b\u306b<span style=\"color: #339966;\"><strong>strpos<\/strong><\/span>\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0<\/p>\n<pre class=\"lang:php decode:true \"><?php\r\n\/\/\u691c\u7d22\u5bfe\u8c61\u6587\u5b57\u5217\r\n$str = 'AppleOrangeMelon';\r\n \r\n\/\/\u691c\u7d22\u3059\u308b\u6587\u5b57\u5217\r\n$search = 'Orange';\r\n \r\n\/\/\u6307\u5b9a\u3057\u305f\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b\r\n$pos = strpos($str, $search);\r\n \r\nif ($pos !== false){\r\n \r\n  echo '\u6587\u5b57\u5217'.$search.'\u306f\u5b58\u5728\u3057\u307e\u3059\u3002<br>';\r\n  echo '\u6587\u5b57\u5217'.$search.'\u306e\u4f4d\u7f6e\u306f'.$pos.'\u756a\u76ee\u3067\u3059\u3002';\r\n \r\n}else{\r\n \r\n  echo '\u6587\u5b57\u5217'.$search.'\u306f\u5b58\u5728\u3057\u307e\u305b\u3093';\r\n \r\n}\r\n?><\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">\u6587\u5b57\u5217Orange\u306f\u5b58\u5728\u3057\u307e\u3059\u3002\r\n\u6587\u5b57\u5217Orange\u306e\u4f4d\u7f6e\u306f5\u756a\u76ee\u3067\u3059\u3002<\/pre>\n<p>\u691c\u7d22\u5bfe\u8c61\u6587\u5b57\u5217<strong>\u300cAppleOrangeMelon\u300d<\/strong>\u306b\u5bfe\u3057\u3066\u3001\u691c\u7d22\u3059\u308b\u6587\u5b57\u5217<strong>\u300cOrange\u300d<\/strong>\u306f\u5b58\u5728\u3059\u308b\u306e\u3067if\u6587\u306e\u5224\u5b9a\u51e6\u7406\u306b\u5165\u308a\u3001<span style=\"color: #0000ff;\"><strong>\u6587\u5b57\u5217\u304c\u898b\u3064\u304b\u3063\u305f\u4f4d\u7f6e\u304c\u53d6\u5f97\u3067\u304d\u3066\u3044\u308b<\/strong><\/span>\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u306d\uff01<\/p>\n<h3>strpos\u306e\u6ce8\u610f\u70b9<\/h3>\n<p>PHP\u3067\u306f<span style=\"color: #ff0000;\"><strong>\u578b\u306e\u6307\u5b9a\u3092\u3057\u306a\u3044\u3068\u3001\u6570\u5024\u306e0\u3068false\u306f\u540c\u3058\u3082\u306e<\/strong><\/span>\u3068\u898b\u306a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001<span style=\"color: #ff0000;\"><strong>strpos\u95a2\u6570\u306e\u623b\u308a\u5024\u306e\u6bd4\u8f03\u306b\u306f\u6ce8\u610f\u304c\u5fc5\u8981<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u3001strpos\u95a2\u6570\u306e\u623b\u308a\u5024\u3092\u578b\u306e\u6307\u5b9a\u3092\u305b\u305a\u306b\u6bd4\u8f03\u3057\u305f\u30b5\u30f3\u30d7\u30eb\u3067\u3059\u3002<\/p>\n<pre class=\"decode:true \">&lt;?php\r\n \r\n\/\/\u691c\u7d22\u5bfe\u8c61\u6587\u5b57\u5217\r\n$str = 'Samurai Engineer blog';\r\n \r\n\/\/\u691c\u7d22\u3059\u308b\u6587\u5b57\u5217\r\n$search = 'Samurai';\r\n \r\n\/\/\u6307\u5b9a\u3057\u305f\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b\r\n$pos = strpos($str, $search);\r\n \r\nif ($pos){\r\n \r\n  echo '\u6587\u5b57\u5217'.$search.'\u306f\u5b58\u5728\u3057\u307e\u3059\u3002&lt;br&gt;';\r\n  echo '\u6587\u5b57\u5217'.$search.'\u306e\u4f4d\u7f6e\u306f'.$pos.'\u756a\u76ee\u3067\u3059\u3002';\r\n \r\n}else{\r\n \r\n  echo '\u6587\u5b57\u5217'.$search.'\u306f\u5b58\u5728\u3057\u307e\u305b\u3093';\r\n \r\n}\r\n \r\n?&gt;\r\n<\/pre>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">\u5b9f\u884c\u7d50\u679c\r\n\u6587\u5b57\u5217Samurai\u306f\u5b58\u5728\u3057\u307e\u305b\u3093\r\n<\/pre>\n<p>\u691c\u7d22\u5bfe\u8c61\u6587\u5b57\u5217&#8217;Samurai Engineer blog&#8217;\u306b\u5bfe\u3057\u3066\u3001\u691c\u7d22\u3059\u308b\u6587\u5b57\u5217&#8217;Samurai&#8217;\u306f<span style=\"color: #0000ff;\"><strong>0\u756a\u76ee\u306b\u5b58\u5728\u3057\u307e\u3059<\/strong><\/span>\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u300c<span style=\"color: #ff0000;\"><strong>if ($pos)<\/strong><\/span>\u300d\u3067<span style=\"color: #0000ff;\"><strong>\u578b\u306e\u6307\u5b9a\u3092\u305b\u305a\u306b\u6bd4\u8f03<\/strong><\/span>\u3057\u3066\u3044\u308b\u305f\u3081false\u3068\u898b\u306a\u3055\u308c\u3001else\u6587\u306e\u51e6\u7406\u304c\u5b9f\u884c\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u5fc5\u305a\u3001\u300c<span style=\"color: #ff0000;\"><strong>if ($pos !== false)<\/strong><\/span>\u300d\u3068<span style=\"color: #0000ff;\"><strong>\u578b\u306e\u5224\u5b9a\u3082\u542b\u3081\u3066<\/strong><\/span>\u66f8\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u691c\u7d22\u3059\u308b\u6587\u5b57\u5217\u304c\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u3059\u308b\u306b\u306f\u3001strstr\u95a2\u6570\u3082strpos\u95a2\u6570\u3082\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001<span style=\"color: #0000ff;\"><strong>strpos\u95a2\u6570\u306e\u65b9\u304c\u51e6\u7406\u901f\u5ea6\u304c\u901f\u304f\u3001\u30e1\u30e2\u30ea\u6d88\u8cbb\u3082\u5c11\u306a\u3044<\/strong><\/span>\u306e\u3067\u3001strpos\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u691c\u7d22\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b<\/h3>\n<p>\u691c\u7d22\u5bfe\u8c61\u6587\u5b57\u5217\u306e<span style=\"color: #0000ff;\"><strong>\u691c\u7d22\u4f4d\u7f6e\u3092\u6307\u5b9a<\/strong><\/span>\u3059\u308b\u306b\u306f\u3001strpos\u95a2\u6570\u306e\u7b2c\u4e09\u5f15\u6570\u306b<span style=\"color: #339966;\"><strong>\u30aa\u30d5\u30bb\u30c3\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306b\u30aa\u30d5\u30bb\u30c3\u30c8\u3092\u6307\u5b9a\u3057\u3066\u3001\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b\u65b9\u6cd5\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"decode:true \">&lt;?php\r\n \r\n\/\/\u691c\u7d22\u5bfe\u8c61\u6587\u5b57\u5217\r\n$str = 'today is rainy. It will rain tomorrow.';\r\n \r\n\/\/\u691c\u7d22\u3059\u308b\u6587\u5b57\u5217\r\n$search = 'rain';\r\n \r\n\/\/\u6307\u5b9a\u3057\u305f\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b\r\n$pos = strpos($str, $search, 14);\r\n \r\necho '\u6587\u5b57\u5217'.$search.'\u306e\u4f4d\u7f6e\u306f'.$pos.'\u756a\u76ee\u3067\u3059\u3002';\r\n \r\n?&gt;\r\n<\/pre>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">\u5b9f\u884c\u7d50\u679c\r\n\u6587\u5b57\u5217rain\u306e\u4f4d\u7f6e\u306f24\u756a\u76ee\u3067\u3059\u3002\r\n<\/pre>\n<p>\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u691c\u7d22\u3059\u308b\u6587\u5b57\u5217\u2019rain\u2019\u306f\u3001<span style=\"color: #0000ff;\"><strong>\u691c\u7d22\u5bfe\u8c61\u306b2\u3064\u542b\u307e\u308c\u3066\u3044\u307e\u3059<\/strong><\/span>\u304c\u3001strpos\u95a2\u6570\u306e\u7b2c\u4e09\u5f15\u6570\u3067\u6587\u5b57\u5217\u306e14\u756a\u76ee\u304b\u3089\u306e\u691c\u7d22\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001strpos\u95a2\u6570\u306e\u8fd4\u308a\u5024\u306f\u691c\u7d22\u5bfe\u8c61\u6587\u5b57\u5217\u306e<span style=\"color: #0000ff;\"><strong>2\u3064\u76ee\u306b\u30d2\u30c3\u30c8\u3057\u305f\u691c\u7d22\u4f4d\u7f6e\u3092\u8fd4\u3057\u307e\u3059\u3002<\/strong><\/span><\/p>\n<h2>mb_strpos\u3067\u30de\u30eb\u30c1\u30d0\u30a4\u30c8\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b<\/h2>\n<h3>mb_strpos\u3068\u306f<\/h3>\n<p><span style=\"color: #339966;\"><strong>strpos<\/strong><\/span>\u95a2\u6570\u306f\u65e5\u672c\u8a9e\u306a\u3069\u306e\u30de\u30eb\u30c1\u30d0\u30a4\u30c8\u6587\u5b57\u5217\u3082\u691c\u7d22\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001<span style=\"color: #ff0000;\"><strong>\u6b63\u3057\u3044\u691c\u7d22\u4f4d\u7f6e\u3092\u8fd4\u3057\u3066\u304f\u308c\u307e\u305b\u3093\u3002<br \/>\n<\/strong><\/span><br \/>\n\u305d\u306e\u305f\u3081\u3001\u30de\u30eb\u30c1\u30d0\u30a4\u30c8\u6587\u5b57\u5217\u691c\u7d22\u3059\u308b\u306b\u306f\u3001strpos\u95a2\u6570\u3092\u62e1\u5f35\u3057\u305f<span style=\"color: #339966;\"><strong>mb_strpos<\/strong><\/span>\u95a2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u66f8\u304d\u65b9\uff1a<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">mb_strpos ( $\u691c\u7d22\u5bfe\u8c61\u6587\u5b57\u5217 , $\u691c\u7d22\u6587\u5b57\u5217 [, $\u30aa\u30d5\u30bb\u30c3\u30c8 = 0 [, $\u6587\u5b57\u30b3\u30fc\u30c9 ]] )<\/pre>\n<p>\u5f15\u6570\uff1a<br \/>\nmb_strpos\u95a2\u6570\u306f\u7b2c\u4e09\u5f15\u6570\u307e\u3067\u306fstrpos\u95a2\u6570\u3068\u540c\u69d8\u3067\u3059\u304c\u3001\u3000<span style=\"color: #0000ff;\"><strong>\u7b2c\u56db\u5f15\u6570\u3067\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u6307\u5b9a<\/strong><\/span>\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u7701\u7565\u3057\u305f\u5834\u5408\u306f\u5185\u90e8\u6587\u5b57\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u304c\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u8fd4\u308a\u5024\uff1a<br \/>\n\u691c\u7d22\u3057\u3066\u898b\u3064\u304b\u3063\u305f\u6587\u5b57\u5217\u3092\u542b\u3080\u305d\u308c\u4ee5\u964d\u306e\u6587\u5b57\u5217\u3092\u8fd4\u3057\u307e\u3059\u3002<br \/>\n\u898b\u3064\u304b\u3089\u306a\u304b\u3063\u305f\u5834\u5408\u306fFALSE\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<h3>mb_strpos\u306e\u4f7f\u3044\u65b9<\/h3>\n<p>\u4ee5\u4e0b\u306b\u65e5\u672c\u8a9e\u306e\u6587\u5b57\u5217\u3092<span style=\"color: #339966;\"><strong>strpos<\/strong><\/span>\u95a2\u6570\u3068<span style=\"color: #339966;\"><strong>mb_strpos<\/strong><\/span>\u95a2\u6570\u3067\u305d\u308c\u305e\u308c\u691c\u7d22\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u691c\u7d22\u7d50\u679c\u306e\u9055\u3044\u306b\u6ce8\u76ee\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0<\/p>\n<pre class=\"lang:php decode:true \">\/\/\u691c\u7d22\u5bfe\u8c61\u6587\u5b57\u5217\r\n$str = '\u30b5\u30e0\u30e9\u30a4\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0';\r\n\r\n\/\/\u691c\u7d22\u3059\u308b\u6587\u5b57\u5217\r\n$search = '\u30a8\u30f3\u30b8\u30cb\u30a2';\r\n\r\n\/\/\u6307\u5b9a\u3057\u305f\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b\r\n$pos = strpos($str, $search);\r\n$pos_mb = mb_strpos($str, $search);\r\n\r\necho 'strpos\u3067\u306e\u691c\u7d22\u7d50\u679c\u4f4d\u7f6e:'.$pos;\r\necho '&lt;br&gt;';\r\necho 'mb_strpos\u3067\u306e\u691c\u7d22\u7d50\u679c\u4f4d\u7f6e:'.$pos_mb;<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"lang:php decode:true \">strpos\u3067\u306e\u691c\u7d22\u7d50\u679c\u4f4d\u7f6e:12\r\nmb_strpos\u3067\u306e\u691c\u7d22\u7d50\u679c\u4f4d\u7f6e:4<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\u306e\u3068\u304a\u308a\u3001strpos\u95a2\u6570\u3067\u306f\u6587\u5b57\u5217\u304c\u898b\u3064\u304b\u3063\u305f\u4f4d\u7f6e\u304c12\u756a\u76ee\u3068\u3044\u3046\u7d50\u679c\u3068\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u65e5\u672c\u8a9e\u30de\u30eb\u30c1\u30d0\u30a4\u30c8\u6587\u5b57\u5217\u306b\u5bfe\u5fdc\u3057\u305fmb_strpos\u95a2\u6570\u3067\u306f<span style=\"color: #339966;\"><strong>\u6b63\u3057\u3044\u4f4d\u7f6e\u3092\u8fd4\u3057\u3066\u3044\u308b<\/strong><\/span>\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001strpos\u95a2\u6570\u3068mb_strpos\u95a2\u6570\u306f\u3001<span style=\"color: #0000ff;\"><strong>\u82f1\u6570\u5b57\u3068\u65e5\u672c\u8a9e\u306a\u3069\u306e\u30de\u30eb\u30c1\u30d0\u30a4\u30c8\u6587\u5b57\u5217\u3067\u3001\u4f7f\u3044\u5206\u3051\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/strong><\/span><\/p>\n<h2>\u914d\u5217\u306e\u4e2d\u306e\u6587\u5b57\u5217\u3092strpos\u3092\u4f7f\u3063\u3066\u691c\u7d22\u3057\u305f\u3044<\/h2>\n<p>\u914d\u5217\u306e\u4e2d\u306e\u6587\u5b57\u5217\u3092\u691c\u7d22\u3057\u305f\u3044\u5834\u5408\u3069\u3046\u3059\u308c\u3070\u3088\u3044\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p><span style=\"color: #ff0000;\"><strong>strpos_array\u3068\u3044\u3063\u305f\u95a2\u6570\u304c\u3042\u308c\u3070\u3088\u3044\u306e\u3067\u3059\u304c\u3001\u3042\u308a\u307e\u305b\u3093\u3002<\/strong><\/span><\/p>\n<p>\u305d\u306e\u305f\u3081\u6b21\u306e\u3088\u3046\u306a\u5f62\u3067\u81ea\u4f5c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">&lt;?php\r\n\r\n$fruits = [\r\n    'Apple',\r\n    'Melon',\r\n    'WaterMelon'\r\n];\r\n\r\necho strpos_array('Melon', $fruits, 0);\r\n\r\nfunction strpos_array($haystack, $needle, $offset = 0, $is_index = FALSE)\r\n{\r\n    $ary = $needle;\r\n    $pos = 0;\r\n    \r\n    if(!is_array($needle))\r\n    {\r\n        $ary = [$needle];\r\n    }\r\n    \r\n    foreach($ary as $key =&gt; $str)\r\n    {\r\n        $pos = strpos($haystack, $str, $offset);\r\n        if($pos === false)\r\n        {\r\n            continue;\r\n        }\r\n        \r\n        if($is_index)\r\n        {\r\n            return $key;\r\n        }\r\n        \r\n        return $pos;\r\n    }\r\n\r\n    return FALSE;\r\n}\r\n\r\n?&gt;<\/pre>\n<p>\u3053\u306e\u81ea\u4f5c\u3057\u305fstrpos_array\u95a2\u6570\u3067\u306f\u7b2c\u4e00\u5f15\u6570\u306b\u306f\u691c\u7d22\u3057\u305f\u3044\u6587\u5b57\u5217\u3092\u3001\u7b2c\u4e8c\u5f15\u6570\u306b\u306f\u691c\u7d22\u5bfe\u8c61\u3068\u306a\u308b\u914d\u5217\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u7b2c\u4e09\u5f15\u6570\u306f<span style=\"color: #339966;\"><strong>strpos<\/strong><\/span>\u3068\u540c\u3058\u304f\u30aa\u30d5\u30bb\u30c3\u30c8\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u7701\u7565\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u7b2c\u56db\u5f15\u6570\u304c<span style=\"color: #339966;\"><strong>TRUE<\/strong><\/span>\u306e\u5834\u5408\u306f\u6587\u5b57\u5217\u306e\u5834\u6240\u3067\u306f\u306a\u304f<span style=\"color: #0000ff;\"><strong>\u6587\u5b57\u5217\u3092\u767a\u898b\u3057\u305f\u8981\u7d20\u6570\u3092\u8fd4\u3057\u307e\u3059\u3002<\/strong><\/span><\/p>\n<h2>strstr\u3067\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b\u65b9\u6cd5<\/h2>\n<h3>strstr\u3068\u306f<\/h3>\n<p>strstr\u95a2\u6570\u306f\u3001<span style=\"color: #0000ff;\"><strong>\u6587\u5b57\u5217\u304c\u6700\u521d\u306b\u73fe\u308c\u308b\u4f4d\u7f6e\u3092\u691c\u7d22<\/strong><\/span>\u3057\u3001\u898b\u3064\u304b\u3063\u305f\u4f4d\u7f6e\u304b\u3089\u6700\u5f8c\u307e\u3067\u306e\u6587\u5b57\u5217\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<p>\u66f8\u304d\u65b9\uff1a<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">strstr ( $\u691c\u7d22\u5bfe\u8c61\u6587\u5b57\u5217 , $\u691c\u7d22\u6587\u5b57\u5217 [, bool $\u898b\u3064\u304b\u3063\u305f\u4f4d\u7f6e\u3088\u308a\u524d\u306e\u6587\u5b57\u5217\u3092\u8fd4\u3059\u304b ] )<\/pre>\n<p>\u5f15\u6570\uff1a<br \/>\n\u7b2c\u4e00\u5f15\u6570\u306b\u306f\u691c\u7d22\u3092\u884c\u3046\u6587\u5b57\u5217\u3092\u6307\u5b9a\u3057\u3001\u7b2c\u4e8c\u5f15\u6570\u306b\u306f\u691c\u7d22\u3059\u308b\u6587\u5b57\u5217\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u691c\u7d22\u6587\u5b57\u5217\u304c\u6587\u5b57\u5217\u3067\u306f\u306a\u3044\u5834\u5408\u306f\u3001\u305d\u308c\u3092<span style=\"color: #0000ff;\"><strong>\u6574\u6570\u306b\u5909\u63db\u3057\u3066\u3001\u305d\u306e\u756a\u53f7\u3092\u6587\u5b57\u5217\u3068\u3057\u3066\u6271\u3044\u307e\u3059\u3002<\/strong><\/span><\/p>\n<p>\u7b2c\u4e09\u5f15\u6570\u306btrue\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u623b\u308a\u5024\u3068\u3057\u3066<span style=\"color: #0000ff;\"><strong>\u6587\u5b57\u5217\u304c\u898b\u3064\u304b\u3063\u305f\u4f4d\u7f6e\u3088\u308a\u524d\u306e\u6587\u5b57\u5217\u3092\u8fd4\u3057\u307e\u3059\u3002<br \/>\n<\/strong><\/span><br \/>\n\u8fd4\u308a\u5024\uff1a<br \/>\n\u691c\u7d22\u3057\u3066\u898b\u3064\u304b\u3063\u305f<span style=\"color: #0000ff;\"><strong>\u6587\u5b57\u5217\u3092\u542b\u3080\u305d\u308c\u4ee5\u964d\u306e\u6587\u5b57\u5217<\/strong><\/span>\u3092\u8fd4\u3057\u307e\u3059\u3002<br \/>\n\u898b\u3064\u304b\u3089\u306a\u304b\u3063\u305f\u5834\u5408\u306fFALSE\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<h3>strstr\u306e\u4f7f\u3044\u65b9<\/h3>\n<p>\u4ee5\u4e0b\u306b<span style=\"color: #339966;\"><strong>strstr<\/strong><\/span>\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u6307\u5b9a\u3057\u305f\u6587\u5b57\u5217\u304c\u5b58\u5728\u3059\u308b\u304b\uff1f\u78ba\u8a8d\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e01<\/p>\n<pre class=\"lang:php decode:true \">\/\/\u691c\u7d22\u5bfe\u8c61\u6587\u5b57\u5217\r\n$str = 'AppleOrangeMelon';\r\n\r\n\/\/\u691c\u7d22\u3059\u308b\u6587\u5b57\u5217\r\n$search = 'Orange';\r\n\r\n\/\/\u6307\u5b9a\u3057\u305f\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b\r\necho strstr($str, $search);<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">OrangeMelon<\/pre>\n<p>\u691c\u7d22\u5bfe\u8c61\u6587\u5b57\u5217\u300cAppleOrangeMelon\u300d\u306b\u5bfe\u3057\u3066\u3001\u691c\u7d22\u3059\u308b\u6587\u5b57\u5217\u300cOrange\u300d\u3092\u6307\u5b9a\u3057\u3001Orange\u3092\u542b\u3080\u305d\u308c\u4ee5\u964d\u306e\u6587\u5b57\u5217\u304c\u8fd4\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u306d\uff01<\/p>\n<p>\u307e\u305f\u3001strstr\u95a2\u6570\u306f<span style=\"color: #ff0000;\"><strong>\u5927\u6587\u5b57\u5c0f\u6587\u5b57\u3092\u533a\u5225\u3057\u3066\u691c\u7d22\u3092\u884c\u3044\u307e\u3059\u3002<\/strong><\/span><\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u691c\u7d22\u3059\u308b\u6587\u5b57\u5217\u3092\u5927\u6587\u5b57\u306b\u3059\u308b\u3068\u3001FALSE\u3092\u8fd4\u3057\u307e\u3059\u306e\u3067\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e02<\/p>\n<pre class=\"lang:php decode:true \">\/\/\u691c\u7d22\u5bfe\u8c61\u6587\u5b57\u5217\r\n$str = 'AppleOrangeMelon';\r\n\r\n\/\/\u691c\u7d22\u3059\u308b\u6587\u5b57\u5217\r\n$search = 'ORANGE';\r\n\r\n\/\/\u6307\u5b9a\u3057\u305f\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b\r\nvar_dump(strstr($str, $search));<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">bool(false)<\/pre>\n<p>\u4e0a\u8a18\u30b5\u30f3\u30d7\u30eb\u306e\u3088\u3046\u306b\u3001\u5358\u8a9e\u304c\u540c\u3058\u3067\u3082\u5927\u6587\u5b57\u5c0f\u6587\u5b57\u3067\u533a\u5225\u3057\u3066\u691c\u7d22\u3055\u308c\u307e\u3059\u306e\u3067<span style=\"color: #ff0000;\"><strong>FALSE\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<br \/>\n<\/strong><\/span><br \/>\n\u5927\u6587\u5b57\u5c0f\u6587\u5b57\u3092\u533a\u5225\u3057\u306a\u3044\u3067\u691c\u7d22\u3092\u884c\u3044\u305f\u3044\u5834\u5408\u306f\u3001<span style=\"color: #339966;\"><strong>stristr<\/strong><\/span>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306bstristr\u3092\u4f7f\u7528\u3057\u3066\u3001\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e03<\/p>\n<pre class=\"lang:php decode:true \">\/\/\u691c\u7d22\u5bfe\u8c61\u6587\u5b57\u5217\r\n$str = 'AppleOrangeMelon';\r\n\r\n\/\/\u691c\u7d22\u3059\u308b\u6587\u5b57\u5217\r\n$search = 'ORANGE';\r\n\r\n\/\/\u6307\u5b9a\u3057\u305f\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b\r\nvar_dump(stristr($str, $search));<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">string(11) \"OrangeMelon\"<\/pre>\n<h2>\u6587\u5b57\u5217\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u3082\u3063\u3068\u8a73\u3057\u304f\u77e5\u308a\u305f\u3044\u65b9\u3078<\/h2>\n<p>\u3053\u3053\u3067\u7d39\u4ecb\u3057\u305f\u6587\u5b57\u5217\u306e\u691c\u7d22\u4ee5\u5916\u306b\u3082\u3001<\/p>\n<ul>\n<li>\u6587\u5b57\u5217\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5<\/li>\n<li>\u6587\u5b57\u5217\u3092\u51fa\u529b\u3059\u308b\u65b9\u6cd5<\/li>\n<li>\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3059\u308b\u65b9\u6cd5<\/li>\n<li>\u6587\u5b57\u5217\u3092\u5206\u5272\u3059\u308b\u65b9\u6cd5<\/li>\n<\/ul>\n<p>\u306a\u3069\u306e\u6587\u5b57\u5217\u306e\u3055\u307e\u3056\u307e\u306a\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u8a18\u4e8b\u306b\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u305c\u3072\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u306d\uff01<br \/>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/25596\" 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\/06\/211f52a63f50db238f1bbb9bfc2d9062-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010PHP\u5165\u9580\u3011\u3053\u308c\u3067\u5b8c\u74a7!\u6587\u5b57\u5217\u306e\u51fa\u529b\u304b\u3089\u9023\u7d50\u3001\u691c\u7d22\u3001\u7f6e\u63db\u3001\u5206\u5272\u307e\u3067<\/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<h2>PHP\u306b\u3064\u3044\u3066\u3082\u3063\u3068\u77e5\u308a\u305f\u3044\u65b9\u3078<\/h2>\n<p>\u3044\u304b\u304c\u3067\u3057\u305f\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>PHP\u306f\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b\u65b9\u6cd5\u3060\u3051\u3067\u3082\u3055\u307e\u3056\u307e\u306a\u95a2\u6570\u3092\u4f7f\u7528\u3067\u304d\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u306d\uff01<\/p>\n<p>\u300cPHP\u306b\u3064\u3044\u3066\u5b9f\u306f\u3044\u307e\u3044\u3061\u308f\u304b\u3063\u3066\u3044\u306a\u3044\u30fb\u30fb\u30fb\u300d<br \/>\n\u300c\u3082\u3063\u3068PHP\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u77e5\u308a\u305f\u3044\uff01\u300d<\/p>\n<p>\u3068\u601d\u3063\u3066\u3044\u308b\u65b9\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3082\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/4097\" 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\/01\/howto-02-3-150x85.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">PHP\u3068\u306f\u4f55\u304b\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01\u3067\u304d\u308b\u3053\u3068\u3084\u5c06\u6765\u6027\u3001\u5b66\u7fd2\u65b9\u6cd5\u3082\u7d39\u4ecb<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e749\u670824\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            <\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3053\u3053\u3067\u306f\u3001\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3001<\/p>\n<ul>\n<li>strstr\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b\u65b9\u6cd5<\/li>\n<li>strpos\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b\u65b9\u6cd5<\/li>\n<li>strpos\u95a2\u6570\u306e\u6ce8\u610f\u70b9<\/li>\n<li>strpos\u95a2\u6570\u3067\u691c\u7d22\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b\u65b9\u6cd5<\/li>\n<li>mb_strpos\u95a2\u6570\u3067\u30de\u30eb\u30c1\u30d0\u30a4\u30c8\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b\u65b9\u6cd5<\/li>\n<li>\u6b63\u898f\u8868\u73fe\u3067\u691c\u7d22\u3059\u308b\u65b9\u6cd5<\/li>\n<\/ul>\n<p>\u306a\u3069\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<br \/>\n<span style=\"color: #ff0000;\"><strong><br \/>\nstrstr\u95a2\u6570\u3001strpos\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308c\u3070\u3001\u57fa\u672c\u7684\u306a\u6587\u5b57\u5217\u691c\u7d22\u304c\u53ef\u80fd\u3067\u3059\u3002<\/strong><\/span><\/p>\n<p>strpos\u95a2\u6570\u306f\u6587\u5b57\u5217\u306e\u4f4d\u7f6e\u3092\u6307\u5b9a\u3057\u3066\u691c\u7d22\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3082\u3057\u3001\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b\u65b9\u6cd5\u3092\u5fd8\u308c\u3066\u3057\u307e\u3063\u305f\u3089\u3001\u3053\u306e\u8a18\u4e8b\u3092\u601d\u3044\u51fa\u3057\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP\u3067\u306f\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b\u305f\u3081\u306e\u95a2\u6570\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u3069\u3093\u306a\u95a2\u6570\u3092\u4f7f\u3046\u3079\u304d\u3067\u3057\u3087\u3046\u304b\uff1f \u307e\u305f\u3001\u65e5\u672c\u8a9e\u304c\u6df7\u3056\u3063\u305f\u6587\u5b57\u5217\u3068\u82f1\u6570\u5b57\u3060\u3051\u306e\u6587\u5b57\u5217\u3067\u306f\u4f7f\u3046\u95a2\u6570\u304c\u9055\u3046\u306e\u3067\u3057\u3087\u3046\u304b\uff1f \u4eca\u56de\u3067\u306fstrpos\u95a2\u6570\u3068mb_strpos\u95a2 [&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-25441","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.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>strpos\u3084mb_strpos\u3092\u4f7f\u3044\u6587\u5b57\u5217\u3092\u691c\u7d22\u3092\u3057\u3066\u307f\u3088\u3046!\u3000\uff5ePHP\u5165\u9580\uff5e | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c strpos\u3084mb_strpos\u3092\u4f7f\u3044\u6587\u5b57\u5217\u3092\u691c\u7d22\u3092\u3057\u3066\u307f\u3088\u3046!\u3000\uff5ePHP\u5165\u9580\uff5e \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\/25441\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"strpos\u3084mb_strpos\u3092\u4f7f\u3044\u6587\u5b57\u5217\u3092\u691c\u7d22\u3092\u3057\u3066\u307f\u3088\u3046!\u3000\uff5ePHP\u5165\u9580\uff5e | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c strpos\u3084mb_strpos\u3092\u4f7f\u3044\u6587\u5b57\u5217\u3092\u691c\u7d22\u3092\u3057\u3066\u307f\u3088\u3046!\u3000\uff5ePHP\u5165\u9580\uff5e \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\/25441\" \/>\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=\"2017-06-20T04:21:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-06T02:43:20+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\\\/25441#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/25441\"},\"author\":{\"name\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/d20c57b59dba15001519a8a671183095\"},\"headline\":\"strpos\u3084mb_strpos\u3092\u4f7f\u3044\u6587\u5b57\u5217\u3092\u691c\u7d22\u3092\u3057\u3066\u307f\u3088\u3046!\u3000\uff5ePHP\u5165\u9580\uff5e\",\"datePublished\":\"2017-06-20T04:21:07+00:00\",\"dateModified\":\"2024-05-06T02:43:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/25441\"},\"wordCount\":119,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/25441#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\\\/25441\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/25441\",\"name\":\"strpos\u3084mb_strpos\u3092\u4f7f\u3044\u6587\u5b57\u5217\u3092\u691c\u7d22\u3092\u3057\u3066\u307f\u3088\u3046!\u3000\uff5ePHP\u5165\u9580\uff5e | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/25441#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/25441#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/06\\\/php_eye_new.jpg\",\"datePublished\":\"2017-06-20T04:21:07+00:00\",\"dateModified\":\"2024-05-06T02:43:20+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c strpos\u3084mb_strpos\u3092\u4f7f\u3044\u6587\u5b57\u5217\u3092\u691c\u7d22\u3092\u3057\u3066\u307f\u3088\u3046!\u3000\uff5ePHP\u5165\u9580\uff5e \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\\\/25441#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/25441\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/25441#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\\\/25441#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"strpos\u3084mb_strpos\u3092\u4f7f\u3044\u6587\u5b57\u5217\u3092\u691c\u7d22\u3092\u3057\u3066\u307f\u3088\u3046!\u3000\uff5ePHP\u5165\u9580\uff5e\"}]},{\"@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":"strpos\u3084mb_strpos\u3092\u4f7f\u3044\u6587\u5b57\u5217\u3092\u691c\u7d22\u3092\u3057\u3066\u307f\u3088\u3046!\u3000\uff5ePHP\u5165\u9580\uff5e | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c strpos\u3084mb_strpos\u3092\u4f7f\u3044\u6587\u5b57\u5217\u3092\u691c\u7d22\u3092\u3057\u3066\u307f\u3088\u3046!\u3000\uff5ePHP\u5165\u9580\uff5e \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\/25441","og_locale":"ja_JP","og_type":"article","og_title":"strpos\u3084mb_strpos\u3092\u4f7f\u3044\u6587\u5b57\u5217\u3092\u691c\u7d22\u3092\u3057\u3066\u307f\u3088\u3046!\u3000\uff5ePHP\u5165\u9580\uff5e | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c strpos\u3084mb_strpos\u3092\u4f7f\u3044\u6587\u5b57\u5217\u3092\u691c\u7d22\u3092\u3057\u3066\u307f\u3088\u3046!\u3000\uff5ePHP\u5165\u9580\uff5e \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\/25441","og_site_name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/sejuku2013","article_published_time":"2017-06-20T04:21:07+00:00","article_modified_time":"2024-05-06T02:43:20+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\/25441#article","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/25441"},"author":{"name":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/d20c57b59dba15001519a8a671183095"},"headline":"strpos\u3084mb_strpos\u3092\u4f7f\u3044\u6587\u5b57\u5217\u3092\u691c\u7d22\u3092\u3057\u3066\u307f\u3088\u3046!\u3000\uff5ePHP\u5165\u9580\uff5e","datePublished":"2017-06-20T04:21:07+00:00","dateModified":"2024-05-06T02:43:20+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/25441"},"wordCount":119,"publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/25441#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\/25441","url":"https:\/\/www.sejuku.net\/blog\/25441","name":"strpos\u3084mb_strpos\u3092\u4f7f\u3044\u6587\u5b57\u5217\u3092\u691c\u7d22\u3092\u3057\u3066\u307f\u3088\u3046!\u3000\uff5ePHP\u5165\u9580\uff5e | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/25441#primaryimage"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/25441#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/06\/php_eye_new.jpg","datePublished":"2017-06-20T04:21:07+00:00","dateModified":"2024-05-06T02:43:20+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c strpos\u3084mb_strpos\u3092\u4f7f\u3044\u6587\u5b57\u5217\u3092\u691c\u7d22\u3092\u3057\u3066\u307f\u3088\u3046!\u3000\uff5ePHP\u5165\u9580\uff5e \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\/25441#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sejuku.net\/blog\/25441"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/25441#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\/25441#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sejuku.net\/blog\/"},{"@type":"ListItem","position":2,"name":"strpos\u3084mb_strpos\u3092\u4f7f\u3044\u6587\u5b57\u5217\u3092\u691c\u7d22\u3092\u3057\u3066\u307f\u3088\u3046!\u3000\uff5ePHP\u5165\u9580\uff5e"}]},{"@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\/25441","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=25441"}],"version-history":[{"count":0,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/25441\/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=25441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/categories?post=25441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/tags?post=25441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}