cvs: peardoc /en/package/php/php-compatinfo/php-compatinfo parsedata.xml

From: Date: Mon, 07 Jul 2008 20:51:51 +0000
Subject: cvs: peardoc /en/package/php/php-compatinfo/php-compatinfo parsedata.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-10981@lists.php.net to get a copy of this message
farell Mon Jul 7 20:51:51 2008 UTC Modified files: /peardoc/en/package/php/php-compatinfo/php-compatinfo parsedata.xml Log: add simple usage example of unified parsing method http://cvs.php.net/viewvc.cgi/peardoc/en/package/php/php-compatinfo/php-compatinfo/parsedata.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/en/package/php/php-compatinfo/php-compatinfo/parsedata.xml diff -u peardoc/en/package/php/php-compatinfo/php-compatinfo/parsedata.xml:1.2 peardoc/en/package/php/php-compatinfo/php-compatinfo/parsedata.xml:1.3 --- peardoc/en/package/php/php-compatinfo/php-compatinfo/parsedata.xml:1.2 Wed Jun 25 21:22:29 2008 +++ peardoc/en/package/php/php-compatinfo/php-compatinfo/parsedata.xml Mon Jul 7 20:51:51 2008 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="package.php.php-compatinfo.php-compatinfo.parsedata"> <refnamediv> <refname><function>PHP_CompatInfo::parseData</function></refname> @@ -177,6 +177,25 @@ </para> </refsect1> + <refsect1 id="package.php.php-compatinfo.php-compatinfo.parsedata.example"> + &title.example; + <para> + <programlisting role="php"> + <![CDATA[ +<?php +require_once 'PHP/CompatInfo.php'; + +$source = '/tmp/File_Find-1.3.0/Find.php'; +$options = array('debug' => true); + +$pci = new PHP_CompatInfo(); +$pci->parseData($source, $options); +?> + ]]> + </programlisting> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables:

« previous php.pear.doc (#10981) next »