php - How to split the time from a timestamp from a nested array of result? -
i have been doing project in php , nested array have extract values. here array have time timestamp i.e [arrtime] , [deptime]
[segment] => stdclass object ( [wssegment] => stdclass object ( [deptime] => 2014-12-10t15:40:00 [arrtime] => 2014-12-10t18:25:00 [eticketeligible] => 1 [operatingcarrier] => hw ) )
i have being trying apply implode function on timestamp not working me .
try one:
$depttime = date('h:i:s',strtotime($yourobject->segment->wssegment->deptime)); $arrtime = date('h:i:s',strtotime($yourobject->segment->wssegment->arrtime));
Comments
Post a Comment