Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 20936 программистов и 1756 роботов. Сейчас ищут 1593 программиста ...
Overview
Вернуться к: Output Drivers
Overview
Overview – The How and What of Output Drivers
Output drivers provide a means of presenting the same information in a variety of formats. The drivers that currently ship with PEAR_Size provide formatting for CVS, HTML, XML and plain text.
Below is an example of creating a driver for XML output:
<?php
$type = 'xml';
//get the factory
$factory = new PEAR_Size_OutputFactory();
//and create the driver...
$driver = $factory->createInstance($type);
?>
Вернуться к: Output Drivers