Format integer value as time in PHP
Description
The following code shows how to format integer value as time.
Example
<?php/* w w w . j av a 2 s . c o m*/
setlocale(LC_ALL, "it_IT");
$tickets = 2;
$departure_time = 1118837700;
$return_time = 1119457800;
$cost = 1350.99;
?>
<?php echo $tickets; ?><br />
<?php echo strftime("%d %B, %Y", $departure_time); ?><br />
<?php echo strftime("%d %B, %Y", $return_time); ?><br />
<?php echo money_format('%i', $cost); ?><br />