
November 6th, 2012, 05:23 AM
|
|
Registered User
|
|
Join Date: Nov 2012
Posts: 13
Time spent in forums: 1 h 33 m 37 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by requinix preg_match.
Do you have shell access? In other words what does
output? |
The situation is I have two variables, $FilePath and $SearchTerm and the question is what is the syntax to use preg_grep to search $FilePath for the SearchTerm and if a match is found what is the value returned (true, false, the string found)
Thanks,
Tom
|