get_meta_tags

array get_meta_tags(string filename_or_url, [int use_include_path]) 
filename_or_url Filename or URL from which to get meta tags
use_include_path Whether to search the include path for the filename

Extracts the meta tag information from a file or URL.

Returns:

Associative array; FALSE on error

Description:

get_meta_tags() parses the meta tag information from a file or URL. Parsing stops when the closing head tag (</head>) is encountered.

Tag information is returned as an associative array. The keys of the array correspond to the name attributes of the meta tags, and the values of the array correspond to the content attributes. If the filename_or_url argument contains a relative filename and use_include_path is set to 1, PHP ...

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.