Re: searching for string inside document
| From: | Maxim Maletsky | Date: | Fri, 10 Jan 2003 11:42:58 +0000 |
| Subject: | Re: searching for string inside document | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-131086@lists.php.net to get a copy of this message | ||
Martin Hudec <corwin@corwin.sk> wrote... :
> Hello,
>
> i have document in html and i want to get out string between <title>
> tags to put it into another variable..
>
> i am wondering if i could use eregi() here....but how? I cant figure
> out any possible way... same with strchr() and strstr()
all these functions can work. Though, you will need to get the
document's contents into a variable of your script so you can perform a
preg_match()/ereg()/strstr() on that string variable. I believe this is
what you missed out.
--
Maxim Maletsky
maxim@php.net