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

stripcslashes

反引用一個使用addcslashes() 轉義的字符串
名稱:stripcslashes
分類:字符串
所屬語言:php
一句話介紹:刪除由addcslashes() 函數添加的反斜杠。

實例

刪除"World!" 前面的反斜杠:

 <span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token keyword">echo</span> <span class="token function">stripslashes</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"Hello \World!"</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

親自試一試

同類函數
  • 計算字符串的md5哈希值 md5

    md5

    計算字符串的md5哈希值
  • 將字符串的第一個字符設為小寫 lcfirst

    lcfirst

    將字符串的第一個字符設為小寫
  • 檢查字符串是否以給定的子字符串結尾 str_ends_with

    str_ends_with

    檢查字符串是否以給定的子字符串結尾
  • 將字符串轉化為小寫 strtolower

    strtolower

    將字符串轉化為小寫
  • 使用“自然順序”算法進行字符串比較 strnatcmp

    strnatcmp

    使用“自然順序”算法進行字符串比較
  • 單向字符串散列 crypt

    crypt

    單向字符串散列
  • 在字符串中查找一組字符的任何一個字符-返回一個以找到的字符開始的子字符串 strpbrk

    strpbrk

    在字符串中查找一組字符的任何一個字符-返
  • 查找字符串中子字符串第一次出現的位置 strpos

    strpos

    查找字符串中子字符串第一次出現的位置