Okay. So lets say theres a website called www.lol.com/index.html and on that website it says:
Hi. My name is John Doe.
I use file_get_contents('www.lol.com/index.html'); and specify $lol = file_get_contents('www.lol.com/index.html');
So now $lol is basically: Hi. My name is John Doe.
Now I want to get rid of the Hi. My name is and the . (period) at the end so all I have left is John Doe
How do I do that? Do I use strstr and strrchr? If I do, how do I get the info in between?





Reply With Quote








