Count number of <li> tags in a <ul> on serverside using PHP
- by Umair
I have a < ul with some < li (s). I want to count the number of these < lis 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 ?