當前位置: 首頁> 函數類別大全> convert_cyr_string

convert_cyr_string

將字符由一種Cyrillic 字符轉換成另一種
名稱:convert_cyr_string
分類:字符串
所屬語言:php
一句話介紹:把字符串由一種Cyrillic 字符集轉換為另一種。

實例

把字符串由一種字符集轉換成另一種:

 <span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token variable">$str</span> <span class="token operator">=</span> <span class="token string double-quoted-string">"Hello world! ???"</span> <span class="token punctuation">;</span>
<span class="token keyword">echo</span> <span class="token variable">$str</span> <span class="token operator">.</span> <span class="token string double-quoted-string">"<br>"</span> <span class="token punctuation">;</span>
<span class="token keyword">echo</span> <span class="token function">convert_cyr_string</span> <span class="token punctuation">(</span> <span class="token variable">$str</span> <span class="token punctuation">,</span> <span class="token string single-quoted-string">&#39;w&#39;</span> <span class="token punctuation">,</span> <span class="token string single-quoted-string">&#39;a&#39;</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>
同類函數
  • 使用另一個字符串將字符串填充到某個長度 str_pad

    str_pad

    使用另一個字符串將字符串填充到某個長度
  • 二進制安全不區分大小寫的字符串比較 strcasecmp

    strcasecmp

    二進制安全不區分大小寫的字符串比較
  • 轉義元字符集 quotemeta

    quotemeta

    轉義元字符集
  • 單向字符串散列 crypt

    crypt

    單向字符串散列
  • 計算文件的sha1哈希值 sha1_file

    sha1_file

    計算文件的sha1哈希值
  • 將字符串拆分為較小的塊 chunk_split

    chunk_split

    將字符串拆分為較小的塊
  • 將字符串解析成多個變量 parse_str

    parse_str

    將字符串解析成多個變量
  • 使用“自然順序”算法比較字符串(不區分大小寫) strnatcasecmp

    strnatcasecmp

    使用“自然順序”算法比較字符串(不區分大