I have the code like this:
<div id="content">
...some included PHP files here
</div>
I need a solution in PHP like this:
if <div id="content"> contains more then 1 paragraph,
then echo "more then one" after paragraph 1.
I need it in PHP not jQuery. Is it possible?
If it can't be done with paragraphs, it's also ok if the echo comes after 'x' number of words or 'y' number of characters.
There is a str_word_count
function in PHP, but I have no idea how to get the content of a div that has PHP includes.