Hi
I have a text file of about 3000 lines.
I need to search this for a specific value that will be 'hidden' within a line.
Once the value is found, I need to capture the entire line to a $var, so I work with the value within that line.
Any pointers ??
This is what I've got (not a lot !)
$file = file_get_contents("test.txt");
if(strpos($file, "MAC_Address")) {
echo "String found!";
} else {
echo "String not found";
}
Thanks 🙂