- var_dump: documentation ( source)
- print_r: documentation ( source)
- htmlspecialchars: documentation ( source)
<?php
$str = array("hello", "what", "sorry", "Technology");
echo "=============================== hello";
echo "\n\n";
var_dump($str);
echo "\n\n=============================== ";
echo "=============================== ".print($str[0])."\n";
echo "\n\n123";
print_r($str);
// print_r(count(null));
$str = null;
echo htmlspecialchars($str, ENT_COMPAT); // 只转换双引号