hola tengo mediante este codigo logro que las fechas me salgan del tipo Hace 2 minutos, pero me gustaria agregar que tanmbien diga horas, dias,etc
Alguien me da una mano?
Código PHP:
Ver original'fecha' => (time() - $row['fecha'] < 3600) ?
round((time() - $row['fecha'])/60, 0) . $txt['minutes_ago'] : timeformat
($row['fecha']),