Hi,
I need to check that a variable only contains numbers and has a certain length.
For instance:
$a = 0123;
If I use:
$a = (integer)$a // equals $a=123
The (integer) casting "works", becaus it remove e.g. letters...
$a = 123a;
$a = (integer)a$ // equals $a=123 - which is OK
Is there a way to solve the problem, so that leading zero's won't be removed?
Hope someone has the answer,
Kenneth