Code Duplication    Length = 4-7 lines in 2 locations

func/string.php 2 locations

@@ 454-457 (lines=4) @@
451
	$ar = explode( $ss2, $str );
452
	if ( true == $istrim )
453
	{
454
		for ($i=0; $i<count($ar); $i++)
455
		{
456
			$ar[$i] = trim( $ar[$i], ' \t\0\x0B' );
457
		}
458
	}
459
	//去除空串
460
	$ar1 = array();
@@ 461-467 (lines=7) @@
458
	}
459
	//去除空串
460
	$ar1 = array();
461
	for ($i=0; $i<count($ar); $i++)
462
	{
463
		if ( !empty( $ar[$i] ) )
464
		{
465
		    array_push( $ar1, $ar[$i] );
466
		}
467
	}
468
	$s = implode( $s1, $ar1 );
469
	if ( true == $embody )
470
	{