title: How to generate dynamic font awesome icon in php for loop
body: <p>I want to generate all current available font awesome icons dynamically in my php code, so user can select it.  Do I need to hardcode all icons in an array or database? or is there any shortcut light weight way to do this? for example;</p>
  
  <pre><code>&lt;?php
  foreach($fonticons as $icon){ // $fonticons is an abstract array, It have nothing
      echo '&lt;i class="fa '.$icon.'"&gt;&lt;/i&gt;';
  }
  ?&gt;
  </code></pre>
  
  <p>so I should get;</p>
  
  <pre><code>&lt;i class="fa fa-adjust"&gt;&lt;/i&gt;
  &lt;i class="fa fa-anchor"&gt;&lt;/i&gt;
  &lt;i class="fa fa-archive"&gt;&lt;/i&gt;
  &lt;i class="fa fa-area-chart"&gt;&lt;/i&gt;
  &lt;i class="fa fa-arrows"&gt;&lt;/i&gt;
  &lt;i class="fa fa-hand"&gt;&lt;/i&gt;....
  </code></pre>
  
  <p>is it possible?</p>
  
  <p>I came to know that, </p>
  
  <blockquote>
    <p>every font awesome icon has a unique unicode.</p>
  </blockquote>
  
  <p>for example <code>fa-adjust</code> unicode is <code>F042</code>. you can see it in console css as <strong></strong>. So what if set counter starts to <code>F042</code> and loop and increment it in hex. and display this in html?</p>
  
  <p>I can just copy paste this <a href="http://bavotasan.com/2014/php-array-for-font-awesome-4-1-0/" rel="nofollow">array</a> and start using it. But I want it dynamic.</p>