Working with php - Im trying to run a "foreach" on an array, but i want to wrap every two results in li tags. Output will look like this.
<li>
<div>result 1</div>
<div>result 2</div>
</li>
<li>
<div>result 3</div>
<div>result 4</div>
</li>
<li>
<div>result 5</div>
<div>result 6</div>
</li>
how do i go about doing this?
Thanks!