【发布时间】:2012-03-07 17:34:42
【问题描述】:
如何为xml下面<STRONG>标签内的所有内容设置一个php变量:
<SAVED_EXPORT>
<metatag_description>
Some text here? The <strong> Cambro High-Impact 12" x 16" Dietary Tray</strong> is the solution. Comprised of high-impact, ligh
</metatag_description>
</SAVED_EXPORT>
<? foreach( $xml as $SAVED_EXPORT ) {
$header = $SAVED_EXPORT->metadescription;
echo $header[0];
}
?>
我希望它只是吐出:Cambro High-Impact 12" x 16" Dietary Tray 而不是所有的描述
【问题讨论】: