DanielWhite Posted June 21, 2008 Share Posted June 21, 2008 Does anybody know how I can get this to work? print $s2->billing-address->email . "\n"; It won't let me use a hyphen (-). I get this error: Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home2/nhcuquyk/public_html/CheckoutCode/1.2.5b/demo/xmlplay.php on line 76 I tried putting the HTML code for the symbol in too and that didn't work: print $s2->billing. "-" .-address->email . "\n"; Can anyone help? Thank you, Daniel White. Link to comment https://forums.phpfreaks.com/topic/111223-solved-xml-print-s2-billing-address-email-n/ Share on other sites More sharing options...
DanielWhite Posted June 21, 2008 Author Share Posted June 21, 2008 Solved: Change this: print $s2->billing-address->email . "\n"; To this: print $s2->['billing-address'}->email . "\n"; Link to comment https://forums.phpfreaks.com/topic/111223-solved-xml-print-s2-billing-address-email-n/#findComment-570884 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.