est alphanumérique PHP

if(ctype_alnum($string)){
    // do something
}
Matthijsmgj