Martin Hudec [EMAIL PROTECTED] 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() herebut how? I cant figure
out any possible way... same with strchr() and strstr()
all
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() herebut how? I cant figure
out any possible way... same with strchr() and strstr()
can anyone help me please?
--
Best regards,
Martin
: Friday, 10 January 2003 3:22 PM
To: [EMAIL PROTECTED]
Subject: [PHP] searching for string inside document
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() herebut how? I cant
PM
To: 'Martin Hudec'; [EMAIL PROTECTED]
Subject: RE: [PHP] searching for string inside document
Use Preg:
// put your html into $html
preg_match('/title(.*)\/title/Usi', $htlm, $title);
echo $title[1];
** very basic example
Timothy Hitchens (HiTCHO)
Open Platform
4 matches
Mail list logo