title: How to generate an employee id with year of registration in PHP?
body: <p>I need to generate an employee id for eg: E13001, the number should be auto incremented, and when the next year comes, it should be E14001(year is 2014).It should again start from 001 for every year. I have tried with <code>yy</code> format but the sequence number continues from the previous year. How i suppose to my change the sequence number generation ? help me. Thanks in Advance. </p>