Home > PHP > Function > URLs > get_meta_tags()

get_meta_tags()

get_meta_tags - Extracts all meta tag content attributes from a file and returns an array

Syntax

array get_meta_tags ()

Arguments

-

Description

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

Version

PHP 4, 5

Return value

Returns an array with all the parsed meta tags.