1. <small id='S8PXH'></small><noframes id='S8PXH'>

        • <bdo id='S8PXH'></bdo><ul id='S8PXH'></ul>
        <legend id='S8PXH'><style id='S8PXH'><dir id='S8PXH'><q id='S8PXH'></q></dir></style></legend>

      1. <tfoot id='S8PXH'></tfoot>
        <i id='S8PXH'><tr id='S8PXH'><dt id='S8PXH'><q id='S8PXH'><span id='S8PXH'><b id='S8PXH'><form id='S8PXH'><ins id='S8PXH'></ins><ul id='S8PXH'></ul><sub id='S8PXH'></sub></form><legend id='S8PXH'></legend><bdo id='S8PXH'><pre id='S8PXH'><center id='S8PXH'></center></pre></bdo></b><th id='S8PXH'></th></span></q></dt></tr></i><div id='S8PXH'><tfoot id='S8PXH'></tfoot><dl id='S8PXH'><fieldset id='S8PXH'></fieldset></dl></div>

        PHP - 从字符串中获取某个单词

        时间:2023-10-13

        1. <small id='loQil'></small><noframes id='loQil'>

              <tbody id='loQil'></tbody>
          • <tfoot id='loQil'></tfoot>
          • <legend id='loQil'><style id='loQil'><dir id='loQil'><q id='loQil'></q></dir></style></legend>

            • <bdo id='loQil'></bdo><ul id='loQil'></ul>
              <i id='loQil'><tr id='loQil'><dt id='loQil'><q id='loQil'><span id='loQil'><b id='loQil'><form id='loQil'><ins id='loQil'></ins><ul id='loQil'></ul><sub id='loQil'></sub></form><legend id='loQil'></legend><bdo id='loQil'><pre id='loQil'><center id='loQil'></center></pre></bdo></b><th id='loQil'></th></span></q></dt></tr></i><div id='loQil'><tfoot id='loQil'></tfoot><dl id='loQil'><fieldset id='loQil'></fieldset></dl></div>

                  本文介绍了PHP - 从字符串中获取某个单词的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如果我有这样的字符串:

                  If i have a string like this:

                  $myString = "input/name/something";
                  

                  我怎样才能得到 name 的回显?除了名称和某些内容可能不同之外,每个字符串看起来都一样.

                  How can i get the name to be echoed? Every string looks like that except that name and something could be different.

                  推荐答案

                  所以你唯一知道的是:

                  • 它在输入后启动
                  • 它用正斜杠分隔.

                  >

                  $strArray = explode('/',$myString);
                  $name = $strArray[1];
                  $something = $strArray[2];
                  

                  这篇关于PHP - 从字符串中获取某个单词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何使用 curl 在 php 中调试 get 请求 下一篇:强制“另存为"通过 jQuery GET 对话框

                  相关文章

                    <bdo id='12tYW'></bdo><ul id='12tYW'></ul>

                    <small id='12tYW'></small><noframes id='12tYW'>

                      <tfoot id='12tYW'></tfoot>

                    1. <i id='12tYW'><tr id='12tYW'><dt id='12tYW'><q id='12tYW'><span id='12tYW'><b id='12tYW'><form id='12tYW'><ins id='12tYW'></ins><ul id='12tYW'></ul><sub id='12tYW'></sub></form><legend id='12tYW'></legend><bdo id='12tYW'><pre id='12tYW'><center id='12tYW'></center></pre></bdo></b><th id='12tYW'></th></span></q></dt></tr></i><div id='12tYW'><tfoot id='12tYW'></tfoot><dl id='12tYW'><fieldset id='12tYW'></fieldset></dl></div>
                    2. <legend id='12tYW'><style id='12tYW'><dir id='12tYW'><q id='12tYW'></q></dir></style></legend>