Re: document title
| From: | Jason Lavigne | Date: | Fri, 01 Dec 2000 02:05:36 +0000 |
| Subject: | Re: document title | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-28031@lists.php.net to get a copy of this message | ||
// Get just title from HTML
$startstr = "<title>";
$endstr = "</title>";
$startstr = strpos($html_file, $startstr);
$endpos = strpos($html_file, $endstr);
$only_title = substr($html_file, $startpos + strlen($startstr), ($endpos -
$startpos - strlen($startstr)));
Hope it helps.
Jay
----- Original Message -----
From: <samuel.luescher@gmx.net>
To: <php-general@lists.php.net>
Sent: Thursday, November 30, 2000 7:19 AM
Subject: [PHP] document title
> is there a way to retrieve the title of the current document (as specified
> in the header)?
>
> --
> Sent through GMX FreeMail - http://www.gmx.net
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>