title: Dynamically Generate divs with different ids with PHP
body: <p>I want to generate a certain number of divs using PHP with different ids, I know how to generate them for a set number, but how do I generate on click, with different ids? Also, if 
  I wanted to delete a div (and its corresponding id) how would I do that?</p>
  
  <p>This is the code I have for generating (6) divs</p>
  
  <pre><code> $element = "&lt;div&gt;&lt;/div&gt;";
      $count = 6;
      foreach( range(1,$count) as $item){
          echo $element;
      }
  </code></pre>
  
  <p>I need something like the click() in jquery/javscript (but in PHP) to trigger div creation instead and I don't even know where to start.</p>