SHARE
TWEET

Untitled

a guest Sep 18th, 2012 39 Never
  1. <?php
  2. print_r($xml->htmlText->TEXTFORMAT->P->FONT);
  3.  
  4. Result:
  5.  
  6. SimpleXMLElement Object ( [@attributes] => Array ( [FACE] => Arial [SIZE] => 12 [COLOR] => #333333 [LETTERSPACING] => 0 [KERNING] => 0 ) [A] => SimpleXMLElement Object ( [@attributes] => Array ( [HREF] => mailto:some@email.com [TARGET] => ) [U] => some@email.com ) )
  7.  
  8. echo $xml->htmlText->TEXTFORMAT->P->FONT;
  9.  
  10. Result:
  11. ?>
  12. SOME TEXT SOME TEXT
RAW Paste Data
Top