I Have an Array that I want a foreach to display the Key and Value as XML. The Page is coming up with <$value> and that is it? Any Ideas? Thank You!
$XML_a = array ("Ticket_ID" => "12343456");
    $query = "";
 $string_top = 
"<varcor_api>
    <response>";
       foreach ($XML_a as $key => $value) {
          $query .= "<" . $key . "><" . $value . "></" . $key . ">";
       }
$string_bottom = "
    </response>
</varcor_api>
";
    echo $string_top . $query . $string_bottom;
 
     
     
    