当前位置: 首页> 函数类别大全> 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>

亲自试一试

同类函数
  • 在字符串所有新行之前插入 HTML 换行标记 nl2br

    nl2br

    在字符串所有新行之前插入HTML换行标记
  • 计算字符串的md5哈希值 md5

    md5

    计算字符串的md5哈希值
  • 返回使用 htmlspecialchars() 和 htmlentities() 后的转换表 get_html_translation_table

    get_html_translation_table

    返回使用htmlspecialchars
  • 二进制安全比较字符串(从偏移位置比较指定长度) substr_compare

    substr_compare

    二进制安全比较字符串(从偏移位置比较指定
  • 将字符串的第一个字符设为大写 ucfirst

    ucfirst

    将字符串的第一个字符设为大写
  • 计算两个字符串之间的编辑距离 levenshtein

    levenshtein

    计算两个字符串之间的编辑距离
  • 以 C 语言风格使用反斜线转义字符串中的字符 addcslashes

    addcslashes

    以C语言风格使用反斜线转义字符串中的字符
  • 返回有关字符串中使用的字符的信息-统计 string 中每个字节值(0..255)出现的次数 count_chars

    count_chars

    返回有关字符串中使用的字符的信息-统计s