I am trying to figure this out, I am not the php developer, but I was tasked with this anyways. So, I have been trying to figure it out. I have been asked to replace the - with commas, and rearrange the dates. For example mm-dd-yyy
to yyyy-mm-dd
This is how I replace the -
$TheDate = "09-09-2013";
$TheDate = str_replace('-', ',', $TheDate);
echo $TheDate;
Now, the problem is that I don't even know where to start on how to rearrange the numbers. Could someone please lead me in the right direction?