get_magic_quotes_runtime
(PHP 4, PHP 5, PHP 7)
get_magic_quotes_runtime — 獲取目前 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);
}
?>