Match for a word in a text with the PHP script


Gabriel9999
#1
I have an applications developed with PHP. I have a big text file where I want to match for a word but this can be change in the feature. How can I match a word in PHP?
 
samueltarcin999
#2
There are different functions and ways to match a word in PHP. Best way is using preg_match() function. In the following example we will search the forum word in the $bigtext content.
preg_match('/forum/',$bigtext)
Look: https://www.poftut.com/check-string-...ific-word-php/
 

Similar Threads

3
check file Existing with Python Script
by Gabriel9999 | Apr 28th, 2020
1
check file Existing with Python Script
by Gabriel9999 | Apr 24th, 2020