date_default_timezone_set('Asia/Calcutta');
$date=date("d:m:Y");
Now `$date=14072015;
I want month name 'July' from this date function. i have tried this,but i got output January.
$arr1=explode(":",$date);
$arr2=implode($arr1);
// print_r($arr2);die;
// print_r($arr1);die;
// print_r($date);DIE;
$year=date("Y");
$month=date("M",strtotime($arr2));
print_r($month);DIE;
I Want OUTPUT July.Please help.if anyother methods to solve this please help.