I would like the help of you to do the following I have in case this function that makes in the case the verification of the login to be registered of the user.
If it starts with a number it sends a warning to prevent registration. If you did not eat by number, it frees you from registering for this login.
Here's my problem: this function will inhibit the registration of logins initiated by any symbol or character other than a letter of the alphabet such as @! # $% ¨ ". + § = * / 8 among others or initiated by Below is the function I did.
<?php if(is_numeric(substr($loginPost,0,1))){ ?>
o Login não pode começar com numero
<?} else { ?>
Usuário Cadastrado
<? } ?>