How do you call specific array from an XML file to PHP
I'm trying to connect to an API right now and I'm wondering how you call a specific pocket from an array which is located in an XML file. My terminology may be wrong, but allow me to show you some of the code that I've got.
This will show me the following
echo base::CallAPI ('AccountInfo');
Basically, it is taking my account name, the amount of money I have, currency, date/time and putting it altogether in a not so neat way.
When I put in the code
It shows the following..
What I would like to do is to call just the e-mail and credits part and take out the currency as well as server.time. So ideally, I'd like it to look like this...
[Email] => my email
[Credits] => amount of money I have in my account
[Currency] => USD
[Server.Time] => 2009-10-24 09:32:01
As I'm sure many of you can tell, I'm very new to php, but any help would be fantastic!
Last edited by smoh; 10-24-2009 at 05:41 AM.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)