PHP Script: How to grab e-mails from code.

markhansavon

Newbie
Joined
Dec 3, 2008
Messages
16
Reaction score
0
I'm stuck on a pretty simple PHP problem. Basically, I want to know how to grab a string at a certain point in the page source code. (where the e-mail is). It is a SMF (forum), soI've got something like this:

<td class="windowbg"><a href="mailto:[email protected]">

I need to first be able to cut it from the above down to this:


I already know how to do this part by using the strstr command (finding everything after mailto:.


Now I would like to know how to delete everything after the 'M', but I just can't find the command that would work.

If anyone could answer or lead me in the right direction, thanks ahead of time.
 
Last edited:
wooooooooowwwww :o

I like the code, will use it. Thanks. ;-)

EDIT: "$found" is an array, now, isn't it? hmm... How do I echo it out then?
 
Last edited:
Back
Top