Dear All experts,
I do have a script, which has a variable $result. In the $result, there is multiple line of html, here is a part $result.
$result
<td><a href="
mailto:
abc@abc.com">abc@abc.com</a></td>
.
.
.
<td><a href="
mailto:
def@def.com">def@def.com</a></td>
.
.
.
<td><a href="
mailto:
ijk@ijk.com">ijk@def.com</a></td>
.
.
.
In the script, I used the following coding to extract the first email address:
eregi("mailto🙁[\"]*)\"", $result, $num);
$num[1] will be the email address abc@abc.com, but I would like to extract all email address from $result into an array.
What should I do?
Cheers,
KK Yuen