note 22833 added to function.echo

From: Date: Mon, 01 Jul 2002 19:22:12 +0000
Subject: note 22833 added to function.echo
Groups: php.notes 
Request: Send a blank email to php-notes+get-32474@lists.php.net to get a copy of this message
The problem with get_meta_tags only returning the last occurence of a tag with the same name is not a minor one. If you are creating metatags for a number of different languages you should follow the W3C guidelines and specify the language used in the tags. If get_meta_tags only returns the final occurence and totally ignores the language attribute then it isn't much use. The entire function should be reviewed and rewritten since it seems to be fairly intolerant of minor textual variations and, as noted, also has platform dependencies when it comes to line endings. Use regular expressions as an alternative and/or write your own get_meta_tags function. -- http://www.php.net/manual/en/function.echo.php http://master.php.net/manage/user-notes.php?action=edit+22833 http://master.php.net/manage/user-notes.php?action=delete+22833 http://master.php.net/manage/user-notes.php?action=reject+22833

« previous php.notes (#32474) next »