Sanitation

Sanitation is the process to clean data and remove any unwanted parts. The data may end up modified by this process, sometimes quite a lot. There are native and extension functions in PHP to perform sanitation, as long as components.

<?php

echo 'TRANSLIT : ', iconv("UTF-8", "ISO-8859-1//TRANSLIT", $text), PHP_EOL;

?>

Documentation

See also Data sanitization

Related : Validation

Related packages : waavi/sanitizer, waavi/sanitizer