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

strripos

計算指定字符串在目標字符串中最後一次出現的位置(不區分大小寫)
名稱:strripos
分類:字符串
所屬語言:php
一句話介紹:查找字符串在另一字符串中最後一次出現的位置(對大小寫不敏感)。

實例

查找"php" 在字符串中最後一次出現的位置:

 <span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token keyword">echo</span> <span class="token function">strripos</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"You love php, I love php too!"</span> <span class="token punctuation">,</span> <span class="token string double-quoted-string">"PHP"</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

親自試一試

同類函數
  • 將字符串轉化為大寫 strtoupper

    strtoupper

    將字符串轉化為大寫
  • 二進制安全比較字符串開頭的若干個字符(不區分大小寫) strncasecmp

    strncasecmp

    二進制安全比較字符串開頭的若干個字符(不
  • 將字符串轉換為數組 str_split

    str_split

    將字符串轉換為數組
  • 將特殊字符轉換為HTML實體 htmlspecialchars

    htmlspecialchars

    將特殊字符轉換為HTML實體
  • 計算一個字符串的crc32 多項式 crc32

    crc32

    計算一個字符串的crc32多項式
  • 替換字符串的子串 substr_replace

    substr_replace

    替換字符串的子串
  • 將二進制數據轉換為十六進製表示 bin2hex

    bin2hex

    將二進制數據轉換為十六進製表示
  • 將邏輯順序希伯來文(logical-Hebrew)轉換為視覺順序希伯來文(visual-Hebrew),並且轉換換行符 hebrevc

    hebrevc

    將邏輯順序希伯來文(logical-He
熱門文章