Ben bir xml veri çıkışları bir dizi var. Bu şuna benzer:
$data = array(
'trip_id' => $this->trip_id,
'from' => $this->from,
'from_lat' => $this->from_lat,
'from_lon' => $this->from_lon,
'to' => $this->to,
'to_lat' => $this->to_lat,
'to_lon' => $this->to_lon,
'when' => $this->when,
'when_iso' => date('Y-m-d H:i', $this->when),
'details' => $this->details,
'got_car' => $this->got_car,
'inserted' => $this->inserted,
'name' => $this->name,
'email' => $this->email,
'phone' => $this->phone,
);
$ This_when bir unix zaman damgası içerir ve zaman wich yeni bir tür eklemek istiyorum when_rel, bu unix zaman damgası ifade ettiğini bugünden itibaren gün sayısını içermelidir olduğunu. (1, 2 vb)
Ben t bir diziden getirilen bir değere matematik nasıl uygulanacağını bilmek istiyorum. Bu çalıştı ama sadece bir hata ortaya koyar:
'when_rel' => ($this->when/60);