there are 20 li

```
  <ul>
      <li id="1"></li>
      <li id="2"></li>
      <li id="3"></li> <!--- Row1--->

      <li id="4"></li>
      <li id="5"></li>
      <li id="6"></li><!--- Row2--->

      <li id="7"></li>
      <li id="8"></li>
      <li id="9"></li><!--- Row3--->

      <li id="10"></li> 
      <li id="11"></li>
      <li id="12"></li><!--- Row4--->
  </ul>

```

i want to give class to first 3 li element 1,2,3 to row 1 

```
 li 4,5,6 to row 2

```

is it possible with li?? 

```
 <?php $i=0;?>

<ul>
  <?php foreach($data as $da):?>
     <li id="<?php echo $i+1;?>"></li>
  <?php $i++; ?>
  <?php endforeach; ?>
</ul>

```