當前位置: 首頁> 函數類別大全> 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>
同類函數
  • 計算指定字符串在目標字符串中最後一次出現的位置 strrpos

    strrpos

    計算指定字符串在目標字符串中最後一次出現
  • 解碼一個uuencode 編碼的字符串 convert_uudecode

    convert_uudecode

    解碼一個uuencode編碼的字符串
  • 查找指定字符在字符串中的最後一次出現 strrchr

    strrchr

    查找指定字符在字符串中的最後一次出現
  • 二進制安全比較字符串開頭的若干個字符 strncmp

    strncmp

    二進制安全比較字符串開頭的若干個字符
  • 輸出格式化的字符串 vprintf

    vprintf

    輸出格式化的字符串
  • 將字符串解析成多個變量 parse_str

    parse_str

    將字符串解析成多個變量
  • 將字符串轉化為大寫 strtoupper

    strtoupper

    將字符串轉化為大寫
  • 翻譯字符或替換子字符串-轉換指定字符 strtr

    strtr

    翻譯字符或替換子字符串-轉換指定字符