cvs: phpdoc /en/reference/spl/splfileinfo getgroup.xml
| From: | Brett Bieber | Date: | Fri, 14 Nov 2008 21:59:16 +0000 |
| Subject: | cvs: phpdoc /en/reference/spl/splfileinfo getgroup.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-2546@lists.php.net to get a copy of this message | ||
saltybeagle Fri Nov 14 21:59:16 2008 UTC
Modified files:
/phpdoc/en/reference/spl/splfileinfo getgroup.xml
Log:
Add example for SplFileInfo::getGroup
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/splfileinfo/getgroup.xml?r1=1.2&r2=1.3&diff_format=u
Index: phpdoc/en/reference/spl/splfileinfo/getgroup.xml
diff -u phpdoc/en/reference/spl/splfileinfo/getgroup.xml:1.2
phpdoc/en/reference/spl/splfileinfo/getgroup.xml:1.3
--- phpdoc/en/reference/spl/splfileinfo/getgroup.xml:1.2 Fri Nov 14 21:40:37 2008
+++ phpdoc/en/reference/spl/splfileinfo/getgroup.xml Fri Nov 14 21:59:16 2008
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<refentry xml:id="splfileinfo.getgroup" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
@@ -37,6 +37,23 @@
</para>
</refsect1>
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title><function>SplFileInfo::getFilename</function> example</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+$info = new SplFileInfo(__FILE__);
+print_r(posix_getgrgid($info->getGroup()));
+]]>
+ </programlisting>
+ &example.outputs.similar;
+ </example>
+ </para>
+ </refsect1>
+
<refsect1 role="seealso">
&reftitle.seealso;
<para>