PHPにおけるサニタイズ

2010年4月30日

使用する関数は
htmlspecialchars

例)
$value = htmlspecialchars($value);

これでデータのサニタイズが行われる。