I'm researching a SIMPLE function (hopefully) that all it does is search for a string ($string) within a web url ($page).
I would like it to return the entire line that term is in, or something to that effect.
I'm more interested at this point with being able to find a term within a page.
The function would start like this:
function searchFor($string, $page) {
will return entire line where $string is on page $page
}
Thanks for help in advance, this is probably so simple it's difficult.
I would like it to return the entire line that term is in, or something to that effect.
I'm more interested at this point with being able to find a term within a page.
The function would start like this:
function searchFor($string, $page) {
will return entire line where $string is on page $page
}
Thanks for help in advance, this is probably so simple it's difficult.