Categories

Updated: 01/13/2000

Getting and Using Meta Tags for Search Criteria

PHP has a built-in function to easily fetch meta tags from php or html pages called the get_meta_tags function. It will take all the meta tags and build associative arrays with the name of the associative array being the meta name and value of the associative array being the contents of the meta tag. This tutorial shows how to fetch all the meta tags for a given page and print them to the browser. Then, it can be used to build a search engine that compares the contents of the meta variable to the search_criteria and displays the matching link.
©2003-2019 jCay.com