<?php $var = "I'm a good boy &@ is it secure var for input to DB."; if(preg_match("/^[a-zA-Z0-9.'&@ ]+$/", $var) !== 1) echo "var is NOT OK.<br/>"; else echo "var is ok.<br/>"; ?>
You have javascript disabled. You will not be able to edit any code.