Skip to content
Advertisement

Tag: meta-tags

PHP – Best way to get meta data from comments

PHP has a function called get_meta_tags which can read meta tags of HTML files. However, as far as I know there is no standard way to define meta tags for PHP files. The de facto solution seems to be to add comment to the top of the file like so: Is there any way to read these “meta tags” with

Advertisement