Ben böyle bir tarih biçimi var:
$date1 = "Sun May 09 20:07:50 +0000 2010";
09-05-2010: ve ben onu dönüştürmek zorunda
Ben echo date ("dmY", strtotime ($ tarih1)) ile yankılanan ediyorum;
When I print this individually it gives proper result but I am using it in loop it gives me results like: 31-12-1969
I kullanıyorum döngü:
foreach($userinfo as $k=>$v)
{
if($k == 'test')
{
foreach($v as $k1=>$v1)
{
echo $v1."<br>";
//echo strtotime($v1)."<br>";
//echo $date = date("d-m-Y", strtotime($v1));
}
}
}
Guys when I echo $v1 it gives me:Sun May 09 20:07:50 +0000 2010 Also when I echo strtotime($v1); it gives blank. However funny thing is I am getting this conversion perfectly in 1D loop.
Eğer, lütfen yardımcı olabilir misiniz?