From d65ad068e08c3f2574fca1037a9218ccce5e37b6 Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Sat, 18 Jan 2003 06:04:15 +0000 Subject: [PATCH] Moving this here from the string section. This closes bug #19208 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@112347 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/misc/get-meta-tags.xml | 69 ++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 reference/misc/get-meta-tags.xml diff --git a/reference/misc/get-meta-tags.xml b/reference/misc/get-meta-tags.xml new file mode 100644 index 0000000000..3e6a8cc33f --- /dev/null +++ b/reference/misc/get-meta-tags.xml @@ -0,0 +1,69 @@ + + + + + + get_meta_tags + + Extracts all meta tag content attributes from a file and returns + an array + + + + Description + + arrayget_meta_tags + stringfilename + intuse_include_path + + + Opens filename and parses it line by line + for <meta> tags of the form + + Meta Tags Example + + + + +]]> + + + (pay attention to line endings - PHP uses a native function to + parse the input, so a Mac file won't work on Unix). + + + The value of the name property becomes the key, the value of the + content property becomes the value of the returned array, so you + can easily use standard array functions to traverse it or access + single values. Special characters in the value of the name + property are substituted with '_', the rest is converted to lower + case. + + + Setting use_include_path to 1 will result + in PHP trying to open the file along the standard include path. + + + + +