Want to modify html to php

Content for first nested tab 1

Content for second nested tab 2

</div>
<div id="tabs-2">

        <div id="tabs2">
            <ul>
                <li><a href="#tabs-21">First nested tab 2</a></li>
                <li><a href="#tabs-22">Second nested tab 2</a></li>
            </ul>
            <div id="tabs-21">
                <p>Content of first nested tab 2</p>
            </div>
            <div id="tabs-22">
                <p>Content of second nested tab 2</p>
            </div>
        </div>

</div>

i want to this code convert to php auto genarate tabs using for loops.
if for loops said 3 main tab and 2 each sub tab.
please help me

Are you making a comment system?

Sponsor our Newsletter | Privacy Policy | Terms of Service