title: reset counter for new date in php
body: <p><strong>In php i have a code like :</strong></p>
  
  <pre><code>    $job_code = $request-&gt;get("job_code");
      $day      = date('d');
      $month    = date('m');
      $year     = date('y');
      $date     = $day.$month.$year;
  </code></pre>
  
  <p>using this i am getting format like :  abc-241018 
  but i want the format like for date 24 oct : abc-241018-001 (001 to how many enteries may add in a day like 090)</p>
  
  <p>second thing this counter should be changed or reset for the next day like on date change like 25 0ct : abc-251018-001 (001 to how many entries may add in a day like 090) .</p>
  
  <p>it should be reset for new date how can i achieve this by php is there any best way to solve this ?? please help me related to this .</p>