<?php $word = "find"; $mystring = "how to find char from string in php"; /* Test if string contains the word */ if(strpos($mystring, $word) !== false){ echo "Yes found that"; } else{ echo "Not Found!"; }