note 42055 added to language.basic-syntax

From: Date: Sat, 01 May 2004 03:02:09 +0000
Subject: note 42055 added to language.basic-syntax
Groups: php.notes 
Request: Send a blank email to php-notes+get-69058@lists.php.net to get a copy of this message
Although you can use the above methods to pass a document off as a valid for the W3C parser, a simpler-and-perfectly-legal method of doing so is to simple declare the document type in a meta tag. Something along these lines (mind the values in 'content' - I haven't personally used the Content-Type method in awhile): <meta http-equiv="Content-Type" content="application/xml+xhtml; charset=UTF-8" /> Of course if you're using just XML, and don't use such functions, then the above methods will work just as fine. ---- Manual Page -- http://www.php.net/manual/en/language.basic-syntax.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+42055 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42055&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42055&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#69058) next »