Jump to content

simplexml parse


rtert

Recommended Posts

I'm having a problem trying to understand how to grab the following values,

 

<times>

<time type="join">1293756060</time>

<time type="leave">1293756420</time>

</times>

 

Ive read and tried everything I can find for a couple days now and cant get anything to grab both separate times

foreach ($xml->times->time as $times){

$timein{$num} = $times; //this grabs leave time, by accident im sure lol

$timeout{$num} = ???????; //dont know how to separate them by join/leave.

}

 

any help would be great.

Link to comment
https://forums.phpfreaks.com/topic/223851-simplexml-parse/
Share on other sites

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.