Check and confirm if string exist in text

<?php if( $this->artist->review ): ?>
		$word = "system-readmore";
		$mystring = $this->artist->review;
// Test if string contains the word 
		if(strpos($mystring, $word) !== false){
		echo "Word Found!";
		} else {
		echo "Word Not Found!";
<?php endif; ?>

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Back to top