I have a .txt file with some content in it. Now i want to search a particular word from it not a letter. Say, PHP has evolved as a powerful open-source programming language and used for building web applications.. Now i want to search the word programming from the entire text using PHP. How to do it.
An example to do that: <?php $file_content = file_get_contents("file.txt"); if(preg_match("/programming/",$file_content)){ echo("Found!"); }else{ echo("Not Found!"); } ?> Code (markup):