PHP数组到XML cdata

PHP数组到XML cdata,php,soap,Php,Soap,我想将CDATA添加到一个数组中,以创建xml元素“data”,该元素包含未转换的字符(&,例如) $array['data']=[ “数据_1”=>[ “key”=>$key, 'date'=>date('c',time()), “数据”=>“dfa” ] ]; } 这是关于数据价值的。在WSDL中,它被定义为 <s:element minOccurs="0" maxOccurs="1" name="data"> &l

我想将CDATA添加到一个数组中,以创建xml元素“data”,该元素包含未转换的字符(&,例如)

$array['data']=[
“数据_1”=>[
“key”=>$key,
'date'=>date('c',time()),
“数据”=>“dfa”
]
];
}
这是关于数据价值的。在WSDL中,它被定义为

<s:element minOccurs="0" maxOccurs="1" name="data">
 <s:complexType mixed="true">
   <s:sequence>
    <s:any/>
   </s:sequence>
 </s:complexType>
</s:element>

因此,问题是:如何设置未转义字符/如何将CDATA添加到作为参数传递给SoapClient的数组中

<s:element minOccurs="0" maxOccurs="1" name="data">
 <s:complexType mixed="true">
   <s:sequence>
    <s:any/>
   </s:sequence>
 </s:complexType>
</s:element>