Countin g words in a html page with php
- by turbod
How can I counting the numbers of words in a text when begin the text in the linktext?
I must count the text of the title and alt attributes.
Example:
<div> Hello something open.<img src="somethin.jpg" alt="hello"> <a href="open.php" title="open">click</a>
lorem ipsum <a href="open.php">here></a>
the output:
click 6
here 9