Serial number generation using PHP
===

I want to generate a series of serial numbers like CHN000001,CHN000002,CHN000003..etc using PHP. If there is 100 serials then the last one should be like CHN000100. If its 1000 then the serial look like CHN001000. can anyone tell me how to implement the "for" loop for this process?? I think you guys got the idea about what Iam trying to ask.