From: Zach Prezkuta Date: Tue, 5 Feb 2013 03:17:56 +0000 (-0700) Subject: move mb_strlen call out of for loop definition X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b6bc7daadfa0790d3b4dec66192fbb0ed9e77856;p=friendica.git move mb_strlen call out of for loop definition --- diff --git a/include/text.php b/include/text.php index d1fff85ea3..7163a66404 100644 --- a/include/text.php +++ b/include/text.php @@ -175,7 +175,8 @@ if(! function_exists('xmlify')) { function xmlify($str) { $buffer = ''; - for($x = 0; $x < mb_strlen($str); $x ++) { + $len = mb_strlen($str); + for($x = 0; $x < $len; $x ++) { $char = $str[$x]; switch( $char ) {