Count number of <li> tags in a <ul> on serverside using PHP

Posted by Umair on Stack Overflow See other posts from Stack Overflow or by Umair
Published on 2010-04-05T06:21:43Z Indexed on 2010/04/05 6:33 UTC
Read the original article Hit count: 375

Filed under:
|

I have a < ul > with some < li >(s). I want to count the number of these < li>s on server side. And if this number qualifies a given condition then i would like to add some more < li> elements to this < ul>. Can someone please help me with this ?

© Stack Overflow or respective owner

Related posts about php

Related posts about html