hholzgra                Fri Sep 20 07:38:33 2002 EDT

  Modified files:              
    /functable  table.php 
  Log:
  each -> foreach
  
  
Index: functable/table.php
diff -u functable/table.php:1.11 functable/table.php:1.12
--- functable/table.php:1.11    Fri Sep 20 07:36:20 2002
+++ functable/table.php Fri Sep 20 07:38:32 2002
@@ -7,11 +7,6 @@
 
 
        // initial values ...
-       $db_server="localhost";
-       $db_user  ="phpdoc";
-       $db_passwd="phpdoc";
-       $db_name  ="phpdoc";
-
        $outdir   ="output";
 
        $color1   = "white";
@@ -304,8 +299,8 @@
     print("<p>&nbsp;</p><table>\n");
     print("<tr><td></td>");
     $n=0;
-    reset($version);
-    while(list($versionid,$tag)=each($version)) {
+
+               foreach($version as $versionid => $tag) {
       $n++;
       if($versionid%100==99) { // Q&D PHP 4 versions start here
                                $n++;
@@ -318,8 +313,7 @@
     
     print("<tr valign=\"bottom\" bgcolor=\"$color2\"><th>function</th>");
     
-    reset($version);
-    while(list($versionid,$tag)=each($version)) {
+               foreach($version as $versionid => $tag) {
                        if($id==3)
                                $ver = 
ereg_replace("<br>$","",ereg_replace("(.)","\\1<br>",substr(strrchr($tag,"_"),1)));
                        else
@@ -459,8 +453,7 @@
        mysql_free_result($result);
 
        echo "checking for translations\n";
-       reset($translation);
-       while(list($language,)=each($translation)) {
+       foreach($translation as $language => $dummy) {
                echo "... $language\n";
                $result = mysql_query("SELECT q1.function AS function 
                            FROM quickref q1



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

Reply via email to