$padded = substr('0000'.$raw, -4, 0);
In reply to Re: zero padding by herveus in thread zero padding by zentara