I am getting date in this format
$date = '2019-01-02';
but i want a function to change this format into Month day , year format like ( may 2 ,2019
)
$date = "May 7 , 2019" // i want date to be like in this format
How can i get this through function please help me related this i an newbe in php thanx in advance .
i need function to get this because i wanted to use this format in multiple places