PHP Classes / docType

Create HTML or XHTML depending on the user browser

docType PHP Class

This class can be used to create HTML or XHTML depending on the user browser. It analyzes the current HTTP request Accept header and depending on whether the browser accepts XHTML documents or not, it creates a DOM document structure with the right DOCType element for XHTML or not. The rest of the document structure can be composed with other regular calls to DOM object functions.

Similar PHP Classes

Search in PHP Classes

Filter by tags