[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-cvs
Subject:    [DOC-CVS] =?utf-8?q?svn:_/phpdoc/en/trunk/reference/dir/functions/_scandir.xml?=
From:       Christoph_Michael_Becker <cmb () php ! net>
Date:       2017-02-22 19:23:02
Message-ID: svn-cmb-1487791382-341954-1282662478 () svn ! php ! net
[Download RAW message or body]

cmb                                      Wed, 22 Feb 2017 19:23:02 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=341954

Log:
Remove PHP 4 alternatives example

The example is broken as described in user note 120693,
and we're not concerned with PHP 4 anymore, anyway.

Changed paths:
    U   phpdoc/en/trunk/reference/dir/functions/scandir.xml

Modified: phpdoc/en/trunk/reference/dir/functions/scandir.xml
===================================================================
--- phpdoc/en/trunk/reference/dir/functions/scandir.xml	2017-02-22 16:37:42 UTC (rev 341953)
+++ phpdoc/en/trunk/reference/dir/functions/scandir.xml	2017-02-22 19:23:02 UTC (rev 341954)
@@ -137,52 +137,6 @@
     </screen>
    </example>
   </para>
-  <para>
-   <example>
-    <title>PHP 4 alternatives to <function>scandir</function></title>
-    <programlisting role="php">
-<![CDATA[
-<?php
-$dir = "/tmp";
-$dh  = opendir($dir);
-while (false !== ($filename = readdir($dh))) {
-    $files[] = $filename;
-}
-
-sort($files);
-
-print_r($files);
-
-rsort($files);
-
-print_r($files);
-
-?>
-]]>
-    </programlisting>
-    &example.outputs.similar;
-    <screen>
-<![CDATA[
-Array
-(
-    [0] => .
-    [1] => ..
-    [2] => bar.php
-    [3] => foo.txt
-    [4] => somedir
-)
-Array
-(
-    [0] => somedir
-    [1] => foo.txt
-    [2] => bar.php
-    [3] => ..
-    [4] => .
-)
-]]>
-    </screen>
-   </example>
-  </para>
  </refsect1>

  <refsect1 role="notes">



-- 
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic