PHP Programs

Our aim is to connect students from campuses all over Delhi by making them aware of all Technical, Cultural, Management fests, workshops, Seminars organized by every college in Delhi.

Join Us Now

Program 22: Write a PHP program to check if a string contains a specific string.


<!DOCTYPE html>
	<title>PHP Progarms</title>
		$str1 = 'The quick brown fox jumps over the lazy dog .';

		if (strpos($str1, 'jumps') !== false) 
			echo 'The specific word is present .';
			echo 'The word is not present .';

If you have any suggestion or found any error in the above program, then do let us know at [email protected] or just comment below.