<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # PHP String 函數 ## PHP String 簡介 String 字符串函數允許您對字符串進行操作。 ## 安裝 String 函數是 PHP 核心的組成部分。無需安裝即可使用這些函數。 ## PHP String 函數 PHP:指示支持該函數的最早的 PHP 版本。 | 函數 | 描述 | PHP | | --- | --- | --- | | [addcslashes()](func_string_addcslashes.asp) | 在指定的字符前添加反斜杠。 | 4 | | [addslashes()](func_string_addslashes.asp) | 在指定的預定義字符前添加反斜杠。 | 3 | | [bin2hex()](func_string_bin2hex.asp) | 把 ASCII 字符的字符串轉換為十六進制值。 | 3 | | [chop()](func_string_chop.asp) | rtrim() 的別名。 | 3 | | [chr()](func_string_chr.asp) | 從指定的 ASCII 值返回字符。 | 3 | | [chunk_split()](func_string_chunk_split.asp) | 把字符串分割為一連串更小的部分。 | 3 | | [convert_cyr_string()](func_string_convert_cyr_string.asp) | 把字符由一種 Cyrillic 字符轉換成另一種。 | 3 | | [convert_uudecode()](func_string_convert_uudecode.asp) | 對 uuencode 編碼的字符串進行解碼。 | 5 | | [convert_uuencode()](func_string_convert_uuencode.asp) | 使用 uuencode 算法對字符串進行編碼。 | 5 | | [count_chars()](func_string_count_chars.asp) | 返回字符串所用字符的信息。 | 4 | | [crc32()](func_string_crc32.asp) | 計算一個字符串的 32-bit CRC。 | 4 | | [crypt()](func_string_crypt.asp) | 單向的字符串加密法 (hashing)。 | 3 | | [echo()](func_string_echo.asp) | 輸出字符串。 | 3 | | [explode()](func_string_explode.asp) | 把字符串打散為數組。 | 3 | | [fprintf()](func_string_fprintf.asp) | 把格式化的字符串寫到指定的輸出流。 | 5 | | [get_html_translation_table()](func_string_get_html_translation_table.asp) | 返回翻譯表。 | 4 | | [hebrev()](func_string_hebrev.asp) | 把希伯來文本從右至左的流轉換為左至右的流。 | 3 | | [hebrevc()](func_string_hebrevc.asp) | 同上,同時把(\n) 轉為 &lt;br /&gt;。 | 3 | | [html_entity_decode()](func_string_html_entity_decode.asp) | 把 HTML 實體轉換為字符。 | 4 | | [htmlentities()](func_string_htmlentities.asp) | 把字符轉換為 HTML 實體。 | 3 | | [htmlspecialchars_decode()](func_string_htmlspecialchars_decode.asp) | 把一些預定義的 HTML 實體轉換為字符。 | 5 | | [htmlspecialchars()](func_string_htmlspecialchars.asp) | 把一些預定義的字符轉換為 HTML 實體。 | 3 | | [implode()](func_string_implode.asp) | 把數組元素組合為一個字符串。 | 3 | | [join()](func_string_join.asp) | implode() 的別名。 | 3 | | [levenshtein()](func_string_levenshtein.asp) | 返回兩個字符串之間的 Levenshtein 距離。 | 3 | | [localeconv()](func_string_localeconv.asp) | 返回包含本地數字及貨幣信息格式的數組。 | 4 | | [ltrim()](func_string_ltrim.asp) | 從字符串左側刪除空格或其他預定義字符。 | 3 | | [md5()](func_string_md5.asp) | 計算字符串的 MD5 散列。 | 3 | | [md5_file()](func_string_md5_file.asp) | 計算文件的 MD5 散列。 | 4 | | [metaphone()](func_string_metaphone.asp) | 計算字符串的 metaphone 鍵。 | 4 | | [money_format()](func_string_money_format.asp) | 把字符串格式化為貨幣字符串。 | 4 | | [nl_langinfo()](func_string_nl_langinfo.asp) | 返回指定的本地信息。 | 4 | | [nl2br()](func_string_nl2br.asp) | 在字符串中的每個新行之前插入 HTML 換行符。 | 3 | | [number_format()](func_string_number_format.asp) | 通過千位分組來格式化數字。 | 3 | | [ord()](func_string_ord.asp) | 返回字符串第一個字符的 ASCII 值。 | 3 | | [parse_str()](func_string_parse_str.asp) | 把查詢字符串解析到變量中。 | 3 | | [print()](func_string_print.asp) | 輸出一個或多個字符串。 | 3 | | [printf()](func_string_printf.asp) | 輸出格式化的字符串。 | 3 | | [quoted_printable_decode()](func_string_quoted_printable_decode.asp) | 解碼 quoted-printable 字符串。 | 3 | | [quotemeta()](func_string_quotemeta.asp) | 在字符串中某些預定義的字符前添加反斜杠。 | 3 | | [rtrim()](func_string_rtrim.asp) | 從字符串的末端開始刪除空白字符或其他預定義字符。 | 3 | | [setlocale()](func_string_setlocale.asp) | 設置地區信息(地域信息)。 | 3 | | [sha1()](func_string_sha1.asp) | 計算字符串的 SHA-1 散列。 | 4 | | [sha1_file()](func_string_sha1_file.asp) | 計算文件的 SHA-1 散列。 | 4 | | [similar_text()](func_string_similar_text.asp) | 計算兩個字符串的匹配字符的數目。 | 3 | | [soundex()](func_string_soundex.asp) | 計算字符串的 soundex 鍵。 | 3 | | [sprintf()](func_string_sprintf.asp) | 把格式化的字符串寫寫入一個變量中。 | 3 | | [sscanf()](func_string_sscanf.asp) | 根據指定的格式解析來自一個字符串的輸入。 | 4 | | [str_ireplace()](func_string_str_ireplace.asp) | 替換字符串中的一些字符。(對大小寫不敏感) | 5 | | [str_pad()](func_string_str_pad.asp) | 把字符串填充為新的長度。 | 4 | | [str_repeat()](func_string_str_repeat.asp) | 把字符串重復指定的次數。 | 4 | | [str_replace()](func_string_str_replace.asp) | 替換字符串中的一些字符。(對大小寫敏感) | 3 | | [str_rot13()](func_string_str_rot13.asp) | 對字符串執行 ROT13 編碼。 | 4 | | [str_shuffle()](func_string_str_shuffle.asp) | 隨機地打亂字符串中的所有字符。 | 4 | | [str_split()](func_string_str_split.asp) | 把字符串分割到數組中。 | 5 | | [str_word_count()](func_string_str_word_count.asp) | 計算字符串中的單詞數。 | 4 | | [strcasecmp()](func_string_strcasecmp.asp) | 比較兩個字符串。(對大小寫不敏感) | 3 | | [strchr()](func_string_strchr.asp) | 搜索字符串在另一字符串中的第一次出現。strstr() 的別名 | 3 | | [strcmp()](func_string_strcmp.asp) | 比較兩個字符串。(對大小寫敏感) | 3 | | [strcoll()](func_string_strcoll.asp) | 比較兩個字符串(根據本地設置)。 | 4 | | [strcspn()](func_string_strcspn.asp) | 返回在找到任何指定的字符之前,在字符串查找的字符數。 | 3 | | [strip_tags()](func_string_strip_tags.asp) | 剝去 HTML、XML 以及 PHP 的標簽。 | 3 | | [stripcslashes()](func_string_stripcslashes.asp) | 刪除由 addcslashes() 函數添加的反斜杠。 | 4 | | [stripslashes()](func_string_stripslashes.asp) | 刪除由 addslashes() 函數添加的反斜杠。 | 3 | | [stripos()](func_string_stripos.asp) | 返回字符串在另一字符串中第一次出現的位置(大小寫不敏感) | 5 | | [stristr()](func_string_stristr.asp) | 查找字符串在另一字符串中第一次出現的位置(大小寫不敏感) | 3 | | [strlen()](func_string_strlen.asp) | 返回字符串的長度。 | 3 | | [strnatcasecmp()](func_string_strnatcasecmp.asp) | 使用一種“自然”算法來比較兩個字符串(對大小寫不敏感) | 4 | | [strnatcmp()](func_string_strnatcmp.asp) | 使用一種“自然”算法來比較兩個字符串(對大小寫敏感) | 4 | | [strncasecmp()](func_string_strncasecmp.asp) | 前 n 個字符的字符串比較(對大小寫不敏感)。 | 4 | | [strncmp()](func_string_strncmp.asp) | 前 n 個字符的字符串比較(對大小寫敏感)。 | 4 | | [strpbrk()](func_string_strpbrk.asp) | 在字符串中搜索指定字符中的任意一個。 | 5 | | [strpos()](func_string_strpos.asp) | 返回字符串在另一字符串中首次出現的位置(對大小寫敏感) | 3 | | [strrchr()](func_string_strrchr.asp) | 查找字符串在另一個字符串中最后一次出現的位置。 | 3 | | [strrev()](func_string_strrev.asp) | 反轉字符串。 | 3 | | [strripos()](func_string_strripos.asp) | 查找字符串在另一字符串中最后出現的位置(對大小寫不敏感) | 5 | | [strrpos()](func_string_strrpos.asp) | 查找字符串在另一字符串中最后出現的位置(對大小寫敏感) | 3 | | [strspn()](func_string_strspn.asp) | 返回在字符串中包含的特定字符的數目。 | 3 | | [strstr()](func_string_strstr.asp) | 搜索字符串在另一字符串中的首次出現(對大小寫敏感) | 3 | | [strtok()](func_string_strtok.asp) | 把字符串分割為更小的字符串。 | 3 | | [strtolower()](func_string_strtolower.asp) | 把字符串轉換為小寫。 | 3 | | [strtoupper()](func_string_strtoupper.asp) | 把字符串轉換為大寫。 | 3 | | [strtr()](func_string_strtr.asp) | 轉換字符串中特定的字符。 | 3 | | [substr()](func_string_substr.asp) | 返回字符串的一部分。 | 3 | | [substr_compare()](func_string_substr_compare.asp) | 從指定的開始長度比較兩個字符串。 | 5 | | [substr_count()](func_string_substr_count.asp) | 計算子串在字符串中出現的次數。 | 4 | | [substr_replace()](func_string_substr_replace.asp) | 把字符串的一部分替換為另一個字符串。 | 4 | | [trim()](func_string_trim.asp) | 從字符串的兩端刪除空白字符和其他預定義字符。 | 3 | | [ucfirst()](func_string_ucfirst.asp) | 把字符串中的首字符轉換為大寫。 | 3 | | [ucwords()](func_string_ucwords.asp) | 把字符串中每個單詞的首字符轉換為大寫。 | 3 | | [vfprintf()](func_string_vfprintf.asp) | 把格式化的字符串寫到指定的輸出流。 | 5 | | [vprintf()](func_string_vprintf.asp) | 輸出格式化的字符串。 | 4 | | [vsprintf()](func_string_vsprintf.asp) | 把格式化字符串寫入變量中。 | 4 | | [wordwrap()](func_string_wordwrap.asp) | 按照指定長度對字符串進行折行處理。 | 4 | ## PHP String 常量 PHP:指示支持該常量的最早的 PHP 版本。 | 常量 | 描述 | PHP | | --- | --- | --- | | CRYPT_SALT_LENGTH | 包含系統默認加密方法的長度。對于標準 DES 加密,長度是 2。 | | CRYPT_STD_DES | 如果支持 2 字符 salt 的 DES 加密,則設置為 1,否則為 0。 | | CRYPT_EXT_DES | 如果支持 9 字符 salt 的 DES 加密,則設置為 1,否則為 0。 | | CRYPT_MD5 | 如果支持以$1$開始的 12 字符 salt 的MD5加密,則設置為1,否則為0。 | | CRYPT_BLOWFISH | 如果支持以 $2$ 或 $2a$ 開始的 16 字符 salt 的 Blowfish 加密,則設置為 1,否則為 0。 | | HTML_SPECIALCHARS | | HTML_ENTITIES | | ENT_COMPAT | | ENT_QUOTES | | ENT_NOQUOTES | | CHAR_MAX | | LC_CTYPE | | LC_NUMERIC | | LC_TIME | | LC_COLLATE | | LC_MONETARY | | LC_ALL | | LC_MESSAGES | | STR_PAD_LEFT | | STR_PAD_RIGHT | | STR_PAD_BOTH |
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看