當前位置: 首頁> 函數類別大全> 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>

親自試一試

同類函數
  • 隨機打亂一個字符串 str_shuffle

    str_shuffle

    隨機打亂一個字符串
  • 將字符串轉化為大寫 strtoupper

    strtoupper

    將字符串轉化為大寫
  • 替換字符串的子串 substr_replace

    substr_replace

    替換字符串的子串
  • 將字符由一種Cyrillic 字符轉換成另一種 convert_cyr_string

    convert_cyr_string

    將字符由一種Cyrillic字符轉換成另
  • 計算字符串的metaphone鍵 metaphone

    metaphone

    計算字符串的metaphone鍵
  • 在字符串所有新行之前插入HTML 換行標記 nl2br

    nl2br

    在字符串所有新行之前插入HTML換行標記
  • 反轉一個字符串 strrev

    strrev

    反轉一個字符串
  • 計算字符串中全部字符都存在於指定字符集合中的第一段子串的長度 strspn

    strspn

    計算字符串中全部字符都存在於指定字符集合