當前位置: 首頁> 函數類別大全> 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>
同類函數
  • 使用uuencode 編碼一個字符串 convert_uuencode

    convert_uuencode

    使用uuencode編碼一個字符串
  • 計算指定字符串在目標字符串中最後一次出現的位置(不區分大小寫) strripos

    strripos

    計算指定字符串在目標字符串中最後一次出現
  • 查找字符串的首次出現 strstr

    strstr

    查找字符串的首次出現
  • 將格式化的字符串寫入流 vfprintf

    vfprintf

    將格式化的字符串寫入流
  • 計算一個字符串的crc32 多項式 crc32

    crc32

    計算一個字符串的crc32多項式
  • 以千位分隔符方式格式化一個數字 number_format

    number_format

    以千位分隔符方式格式化一個數字
  • 基於區域設置的字符串比較 strcoll

    strcoll

    基於區域設置的字符串比較
  • 重複一個字符串 str_repeat

    str_repeat

    重複一個字符串