Monthly Archives: February 2020

  • IT

Check and confirm if string exist in text

<?php if( $this-artist-review ): ?<?php
		$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; ?
Read more
Back to top