- var_dump: documentation ( source)
- stripslashes: documentation ( source)
- print_r: documentation ( source)
- addslashes: documentation ( source)
- htmlentities: documentation ( source)
- ini_get: documentation ( source)
<?php
$a = get_magic_quotes_gpc();
$b = ini_get("magic_quotes_gpc");
var_dump($a);
var_dump($b);
echo "1) ".get_magic_quotes_gpc()." >> ";
echo "2) ".ini_get("magic_quotes_gpc")." >> ";
set_magic_quotes_runtime(true);
echo "1) ".get_magic_quotes_runtime()." >> ";
echo "2) ".ini_get("magic_quotes_runtime")." >> ";
$str = "'\"";
$arr = array();
$arr[] = "string : ".$str;
$arr[] = "addslashes : ".addslashes($str);
$arr[] = "stripslashes : ".stripslashes($str);
$arr[] = "htmlentities : ".htmlentities($str);
$arr[] = "testing : '".$str."'";
print_r($arr);