La zone de texte ne doit accepter que des caractères alphanumériques et non spéciaux en PHP

if(ctype_alnum($string)){
    echo "Yes, It's an alphanumeric string/text";
}
else{
    echo "No, It's not an alphanumeric string/text";
}
Ankur