I need help in keeping just the number in the RIGHT (before the zeros) In this example:
$var = 'LMO0000000381W'
=> keep just 381
I started with substr($var, 3, -1);
which give me 0000000381
but it's the zeros that might be inside other numbers that bothers me. those are cases I need to be valid
0000000381 => 381
0000003081 => 3081
0000030810 => 30810
0000053081 => 53081