1
Folks I’m having trouble with changing an integer number starting with zero.
$agencia = 0736;
$conta = 999999;
$agencia = intval($agencia);
$conta = intval($conta);
echo($agencia); //resultado 478
Even without the intval was giving the same problem. However its putting in place of zero the number 1 for example. Will print correctly(1736). ::PHP version 7.0::
Why not treat it as string? I believe it will solve your problem!
– Lodi
I tried, but as I pass the information to a class, when I rescue is already changed the value.
– Glenys Mitchell