Ver Fonte

Removed the count_chars funtion (not in use, and exists in PHP4.0b4)

pallo há 25 anos atrás
pai
commit
b650a80da1
1 ficheiros alterados com 0 adições e 16 exclusões
  1. 0 16
      functions/strings.php

+ 0 - 16
functions/strings.php

@@ -153,20 +153,4 @@
    function replace_escaped_spaces ($string) {
       return str_replace(" ", " ", $string);
    }
-
-   function count_chars($string) {
-      for ($i = 0; $i < strlen($string); $i++) {
-         $ch = substr($string, $i, 1);
-         $size++;
-         if ($ch == "\\") {
-            $i++;   
-            $ch = substr($string, $i, 1);
-            if ($ch == "n")
-               $i--;
-            if ($ch == "r")
-               $i--;
-         }   
-      }   
-      return $size;
-   }
 ?>