<rt id="5nchz"><delect id="5nchz"></delect></rt>
  • get_magic_quotes_runtime

    (PHP 4, PHP 5, PHP 7)

    get_magic_quotes_runtime獲取當(dāng)前 magic_quotes_runtime 配置選項的激活狀態(tài)

    說明

    get_magic_quotes_runtime(): bool

    返回當(dāng)前 magic_quotes_runtime 配置選項的激活狀態(tài)。

    返回值

    magic_quotes_runtime 在關(guān)閉時返回 0,否則返回 1。 自 PHP 5.4.0 起始終返回 false

    更新日志

    版本 說明
    5.4.0 總是返回 false,因為魔術(shù)引號(magic quotes)功能已經(jīng)從 PHP 中移除。

    范例

    示例 #1 get_magic_quotes_runtime() 例子

    <?php
    // 檢測 magic_quotes_runtime 是否已經(jīng)激活
    if(get_magic_quotes_runtime())
    {
        
    // 關(guān)閉功能
        
    set_magic_quotes_runtime(false);
    }
    ?>

    參見

    • get_magic_quotes_gpc() - 獲取當(dāng)前 magic_quotes_gpc 的配置選項設(shè)置
    • set_magic_quotes_runtime()