PEAR logo

PHP_CompatInfo : The Definitive Guide

Chapter 10. Outputting Results

Table of Contents

Basic usage
Configuration options
Array renderer options
Csv renderer options
Html renderer options
Text renderer options
Xml renderer options


PHP_CompatInfo can use different kind of renderers and provides a default one (Array) which print a complete parsable string representation of results.

There are 6 renderers available with PHP_CompatInfo 1.8.0

  • Array, PHP_CompatInfo_Renderer_Array. It is similar to PHP var_export May be beautify if PEAR::Var_Dump is installed on your system.

  • Csv, PHP_CompatInfo_Renderer_Csv. Print a comma separate values of results.

  • Html, PHP_CompatInfo_Renderer_Html. Print a pretty nice table with a customizable style sheet (inline or to a separate file)

  • Null, PHP_CompatInfo_Renderer_Null. The solution to suppress display on standard output.

  • Text, PHP_CompatInfo_Renderer_Text. This renderer is usefull only with the command-line parser mode (CLI).

  • Xml, PHP_CompatInfo_Renderer_Xml. Print an XML representation of results. May be beautify if PEAR::XML_Beautifier is installed on your system.

If none of them match your need, you can also write your own renderers.

PHP_CompatInfo : The Definitive Guide v 1.8.0 : August 1, 2008