get_meta_tags

get_meta_tags

(PHP 4, PHP 5, PHP 7)

get_meta_tagsExtracts all meta tag content attributes from a file and returns an array

Description

array get_meta_tags ( string $filename [, bool $use_include_path = false ] )

Opens filename and parses it line by line for <meta> tags in the file. The parsing stops at </head>.

Parameters

filename

The path to the HTML file, as a string. This can be a