Dans :
Fonctions PHP
Concepts PHP
Fonctions MySQL
Fonctions HTML
Forum PHP/MySQL
Cours PHP/MySQL
Scripts PHP/MySQL
tidy_repair_file répare le fichier fourni et le renvoie sous la forme d'une chaîne.
<?php$file = 'file.php';$repaired = tidy_repair_file($file);rename($file, $file . '.bak');file_put_contents($file, $repaired);?>
Les paramètres optionnels config et encoding ont été ajoutés en Tidy 2.0.
Voir aussi tidy_parse_file , tidy_parse_string et tidy_repair_string .