- print_r: documentation ( source)
- htmlspecialchars: documentation ( source)
<?php
$string = '<?xml version="1.0" encoding="UTF-8"?>
<resources>
<string name="en_home">Home</string>
<string name="fr_home">Maison</string>
<string name="zh_home">家</string>
</resources>';
$string = htmlspecialchars($string);
print_r($string);