From 8ec3f7bdbf7a5f702a3022332a6f6cb424d0981a Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Tue, 20 Oct 2009 22:19:38 +0200 Subject: do not recalculate strlen in each loop in utf8 lib Ignore-this: 2e2f6983f0c1b891825b0c1954b7727d darcs-hash:20091020201938-7ad00-7b5501c2acc9f5ac280e73d25e1cccbcb3237356.gz --- inc/utf8.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/inc/utf8.php b/inc/utf8.php index 661e84bd8..a438783f7 100644 --- a/inc/utf8.php +++ b/inc/utf8.php @@ -78,13 +78,14 @@ if(!function_exists('utf8_strip')){ * @author Andreas Gohr */ function utf8_strip($str){ - $ascii = ''; - for($i=0; $i