文本到xml页面

I need to put some text after 105 and I'm out of this. If you're know how to do it help me please.

 elseif($h=="105"){
            echo '<dst name="'.$h.'" '.($count['callcenter'] ? 'callcenter="'.$count['callcenter'].'"' : "").' good="'.$count['good'].'" bad="'.$count['bad'].'"></dst>';
            }

You can concatenate any string like this:

    if($h=="105")
   {
     $append = $count['callcenter'] ? 'callcenter="'.$count['callcenter'].'"' : "";
     echo '<dst name="'.$h.$append.'" good="'.$count['good'].'" bad="'.$count['bad'].'"></dst>';
   }

Above if, assign the value for $var;

 $var = "";//assign what you want here.
 if() { }
 elseif($h=="105$var"){
     echo '<dst name="'.$h.'" '.($count['callcenter'] ? 'callcenter="'.$count['callcenter'].'"' : "").' good="'.$count['good'].'" bad="'.$count['bad'].'"></dst>';
  }

You seems to be mixed with quotes

 elseif($h=="105")
      echo '<dst name="'.$h.'" '.($count['callcenter'] ? 'callcenter="'.$count['callcenter'].'"' : '').' good="'.$count['good'].'" bad="'.$count['bad'].'"></dst>';

Use htmlentities("xml or html string here ...") It will return what you want

elseif ($h == "500") {
    echo htmlentities('<dst name="'.$h.'" '.($count['callcenter'] ? 'callcenter="'.$count['callcenter'].'"' : "").' good="'.$count['good'].'" bad="'.$count['bad'].'"></dst>');
}