[ create a new paste ] login | about

Link: http://codepad.org/Y5lyuYh9    [ raw code | output | fork ]

balajimca - PHP, pasted on Dec 1:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php 
//convert timestamp to normal date
$test=array(1316427274,1289909504);
foreach($test as $sort)
{
$date =str_replace(" ","_",date("Y F",$sort));
$date1 .= $date.",";
}
$date1 = substr($date1,0,-1);
$tet = explode(",",$date1);
$i = count($tet);
echo $i;
print_r($tet);
?>


Output:
1
2
3
4
5
2Array
(
    [0] => 2011_September
    [1] => 2010_November
)


Create a new paste based on this one


Comments: