Given a block of content, I'm looking to create a function in PHP to check for the existence of a keyword or keyword phrase inside an h1-h3 header tags...
For example, if the keyword was "Blue Violin" and the block of text was...
You don't see many blue violins. Most violins have a natural finish. <h1>If you see a blue violin, its really a rarity</h1>
I'd like my function to return:
- The keyword phrase does appear in an h1 tag
- The keyword phrase does not appear in an h2 tag
- The keyword phrase does not appear in an h2 tag