From 760df112cd40274581ef7149d8953c79b4574561 Mon Sep 17 00:00:00 2001 From: pallo Date: Fri, 24 Mar 2000 14:54:56 +0000 Subject: [PATCH] Removed the count_chars funtion (not in use, and exists in PHP4.0b4) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@333 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/strings.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/functions/strings.php b/functions/strings.php index c0f23a85..44f1d122 100644 --- a/functions/strings.php +++ b/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; - } ?> -- 2.25.1