hi,
at my forum people can setup an secure html signature,
and the admin can set the amount of lines the members can use for their signature...
i tried doing it the following:
$a = explode("<br>", $sig);
$b = explode("<br/>", $sig);
$c = explode("<br />", $sig);
$siglines = count($a)+count($b)+count($c);
but the count was always higher than the real number of lines... i guess that is because of the last entry in the array is empty... i was not able to find a solution for this and hope to get some suggestions here 🙂