Very simply I have an file and on each line there is something like this
OneTwoThreeFourFiveSixSeven OneTwoThreeFourFiveSixSeven OneThreeFourSevenFiveSix
OneThreeFourSevenFiveSix OneTwoThreeFourFiveSixSeven OneThreeFourSevenFiveSix
how do I check if both of those lines have word "Five" in it?
I tried:
strstr();
strrpos();
strpos();
And others, but nothing gives me functionality I'm looking for. Is there some build in method in php or do I have to try and build function which would be looking for this?
Ok so this is the code:
foreach ($results as $result) {
foreach ($lines as $line) {
if(strpos($line, '$this->' . $result) || strpos($line, '($this->' . $result)){
$i++;
}
}
if($i == 0 && $result !== "__construct"){
print_r($result);
}
}