title: Generate Serial Numbers with an algorithm in PHP
body: <p>I just started working on a project and before I begin I have a few question about a peice
  of code I need to put together, and how it will need to work.</p>
  
  <p>This code will be generating serial numbers that when ran through an algorithm will equal
  an identifier. The algorithm is nothing special.</p>
  
  <p><br></p>
  
  <p><em>The serial number will need to be broken up in to 4 sets of 5: (Preferably hexadecimal)</em> 
  <br>
  <strong>Example:</strong> 00A00-0B000-F00C0-0000D</p>
  
  <p><em>The identifier will just be 1 set of numbers:</em>
  <br>
  <strong>Example:</strong> 15456548</p>
  
  <p>What I am looking to create is a script that could add(array_sum?) the hexadecimals in a serial number together, dived by 10 and equal the identifier(15456548). The script will need to create as many instances of the serial numbers as I tell it. 
  <br><br><br>
  <strong>Program Example:</strong> </p>
  
  <p><strong>Identifier:</strong> 22807.4
  <br>
  <strong>How Many Serial Numbers To Make:</strong> 2</p>
  
  <p><strong>Serial Numbers:</strong><br>
  45154-54587-58458-69875<br>
  55457-45584-18658-49578<br></p>
  
  <p>(These serial numbers equal the identifier(22807.4) when added up and divided by 10)</p>
  
  <p>I'm not sure if anyone could help me come up with something, or at least explain the process, but I've never built anything like this in PHP before. </p>