codice:
$stringa="ciao";
if (preg_match("/^[a-zA-Z0-9]+$/i",$stringa))
	echo "OK";
else
	echo "NO NO NO";