admin 发表于 2023-2-16 18:55:08

字符串的增删查改

<div id="article_content" class="article_content clearfix">
      <link rel="stylesheet" href="https://csdnimg.cn/release/blogv2/dist/mdeditor/css/editerView/kdoc_html_views-1a98987dfd.css">
      <link rel="stylesheet" href="https://csdnimg.cn/release/blogv2/dist/mdeditor/css/editerView/ck_htmledit_views-6e43165c0a.css">
                <div id="content_views" class="htmledit_views">
                  <p>字符串的增加(在第24位上增加了字符串)</p>
<pre><code>$my_str &#61; ' HELLO PHP 我爱你&#xff01;'

$my_str&#61;'~';

echo $my_str;</code></pre>
<p>字符串的减少&#xff08;在第一位上字符串减少为空&#xff09;</p>
<pre><code>$my_str &#61; &#34;HELLO ,你好&#34;
$my_str&#61;'';

echo $my_str;</code></pre>
<p>字符串的查询</p>
<pre><code>$my_str &#61; &#34;HELLO 你好&#34;;

echo $my_str;</code></pre>
<p>字符串的修改</p>
<pre><code>$my_str &#61; &#34; HELLO 你好&#34;;

echo $my_str &#61; 'i';

echo $my_str;</code></pre>
<p></p>
                </div>
      </div>
      <div id="treeSkill"></div>
页: [1]
查看完整版本: 字符串的增删查改