|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-09-29 02:45 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 27 18:00:01 2025 UTC |
Description: ------------ Hello, here is a piece of index.php of my site ("www.adriaportal.com" / "www.adriaportal.eu"), between opening and closing tag of head. <head> <meta http-equiv="Content-Language" content="cs"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1250"> <title>Adria portal</title> <meta name="description" content="Promotion of tourism and introduction to the culture of Czech and Croatian people." lang="en-US"> <meta name="description" content="Podpora rozvoje turizmu a vz?jemn? pozn?v?n? kultur Chorvat? a ?ech?." lang="cs-CZ"> <meta name="description" content="Podr?ka razvoja turizma i uzajamnog upoznavanja kultura ?eha i Hrvata." lang="hr-HR"> <meta name="keywords" content="czech,republic,croatia,holiday,sea,adritic,links,portal,accomodation,connections,directory,dictionary,news" lang="en-US"> <meta name="keywords" content="?echy,?esk?,republika,chorvatsk?,chorvatsko,dovolen?,mo?e,jadran,odkazy,port?l,ubytov?n?,spojen?,adres??,slovn?k,novinky" lang="cs-CZ"> <meta name="keywords" content="?e?ka,republika,hrvatska,odmor,more,jadran,linkovi,portal,smje?taj,veze,adresao,rije?nik,vijesti" lang="hr-HR"> </head> I'm test the function on my site index page. Reproduce code: --------------- Here is my code of testing: $myArr = get_meta_tags("http://www.adriaportal.com/"); print_r($myArr); Expected result: ---------------- Expected is: Array ( [http-equiv][0] => "Content-Language" content="cs", [http-equiv][1] => "Content-Type" content="text/html; charset=windows-1250", [description][0] => Promotion of tourism and introduction to the culture of Czech and Croatian people., [description][1] => Podpora rozvoje turizmu a vz?jemn? pozn?v?n? kultur Chorvat? a ?ech?., [description][2] => Podr?ka razvoja turizma i uzajamnog upoznavanja kultura ?eha i Hrvata., [keywords][0] => czech,republic,croatia,holiday,sea,adritic,links,portal,accomodation,connections,directory,dictionary,news, [keywords][1] => ?echy,?esk?,republika,chorvatsk?,chorvatsko,dovolen?,mo?e,jadran,odkazy,port?l,ubytov?n?,spojen?,adres??,slovn?k,novinky, [keywords][2] => ?e?ka,republika,hrvatska,odmor,more,jadran,linkovi,portal,smje?taj,veze,adresao,rije?nik,vijesti, ) or better array structure with all attributes of adequate meta tag Actual result: -------------- And the result: Array ( [description] => Podr?ka razvoja turizma i uzajamnog upoznavanja kultura ?eha i Hrvata. [keywords] => ?e?ka,republika,hrvatska,odmor,more,jadran,linkovi,portal,smje?taj,veze,adresao,rije?nik,vijesti ) I'm cannot see in result these tags: <meta http-equiv="Content-Language" content="cs"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1250"> and i'm see only the description and keywords meta tags, all the last rows in header, here in croatian language (owerrides the before parsed rows?). Is this a BUG or i'm make something false? Thank's for your response ;o) Djordje Zurovac P.S. Sorry for my english (?), i'm can active only czech, croatian and german languages.