Good morning everyone!
I came across something that is making me renege and I still can not find the solution:
My code enters a field which if it has LETTERS I cancel it.
That is:
$valor= "1A8CF4D2414E000094136783";
#FILTRADO CAMPO 1
if( preg_match('/^[A-Z]+$/', $valor) )
{
echo('Lectura posee letras.');
$valor = "0";
} else {
echo('Lectura NO posee letras.');
}
The problem is that it always returns the value of else even if the condition is green. What can be wrong?
Thank you very much !!