I have big array fetched with diff strpos() and substr() :
$array[n] = ('Jan 23', 'From Jan 4 to Feb 1', 'Jul 5 to 10');
and I wish a process to convert it to:
$array[n] = ('2013-01-23','2013-01-04/2013-02-01','2013-07-05/2013-07-10);
Thanks for your help.
I plan to use strpos() to get the date string into the array.
after that, I plan to explode the date array, then perform a foreach($date as $index => $value), if I can cast it to string then it´s a date, and I could use two digits, for months match with monthly names. and then form the desired string.
Is there a better solution?