move mb_strlen call out of for loop definition
This commit is contained in:
parent
9dbe7efce5
commit
b6bc7daadf
1 changed files with 2 additions and 1 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue