Jump to content

[SOLVED] XML - print $s2->billing-address->email . "\n";


DanielWhite

Recommended Posts

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.