Ver original$text = 'jnth)js7d.ys78'; if(ctype_alnum ( $text )){ echo $text.' es alfanumerica'; }else{ echo $text.' no es alfanumerica'; }