- var_dump: documentation ( source)
- json_decode: documentation ( source)
- print_r: documentation ( source)
- htmlentities: documentation ( source)
- json_encode: documentation ( source)
<?php
//Source: https://bugs.php.net/bug.php?id=63898
$key = "Foo " . chr(163);
$array = array($key => "");
print_r($array);
$json = json_encode($array);
echo $json."\n";
print_r(json_decode($json));
$x = 'Audio Pass: Get live NFL game audio while you’re on the road with Audio Pass.';
var_dump(htmlentities($x));
var_dump(htmlentities($x, ENT_COMPAT | ENT_SUBSTITUTE, 'ISO-8859-1'));
var_dump(htmlentities($x, ENT_COMPAT | ENT_SUBSTITUTE, 'UTF-8'));