get_magic_quotes_runtime 获取当前 magic_quotes_runtime 配置选项的激活状态

发表日期:2021-07-01 08:55:06 | 来源: | | 浏览(879) 分类:PHP 选项/信息 函数

get_magic_quotes_runtime

(PHP 4, PHP 5, PHP 7)

get_magic_quotes_runtime获取当前 magic_quotes_runtime 配置选项的激活状态

说明

get_magic_quotes_runtime(): bool

返回当前 magic_quotes_runtime 配置选项的激活状态。

返回值

magic_quotes_runtime 在关闭时返回 0,否则返回 1。 自 PHP 5.4.0 起始终返回 false

更新日志

版本 说明
5.4.0 总是返回 false,因为魔术引号(magic quotes)功能已经从 PHP 中移除。

范例

示例 #1 get_magic_quotes_runtime() 例子

<?php 
// 检测 magic_quotes_runtime 是否已经激活if(get_magic_quotes_runtime()){
    // 关闭功能    set_magic_quotes_runtime(false);
}
?>

参见

集速网 copyRight © 2015-2022 宁ICP备15000399号-1 宁公网安备 64010402001209号
与其临渊羡鱼,不如退而结网
欢迎转载、分享、引用、推荐、收藏。