Count the lines

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
rash28
Forum Commoner
Posts: 38
Joined: Wed Aug 01, 2007 1:21 am

Count the lines

Post by rash28 »

Hi,

How to count the lines in the $tool in javascript.
$tool=" Name:------------<br>
Age:
";

Is there any way to count the lines in $tool.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

If it's formatted like that, you could count the occurrences of '<br>'
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply