How do I set a php variable to everything inside the <STRONG> tag below in the xml:
<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];
}
?>
I want it to just spit out: Cambro High-Impact 12″ x 16″ Dietary Tray instead of all the description
Try adding the following expression instead of your echo: