Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 18th, 2012  |  syntax: PHP  |  size: 0.41 KB  |  views: 32  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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