rtert Posted January 9, 2011 Share Posted January 9, 2011 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.