I have an array formed from a string (2014/15):
$arr = explode("/", $Years, 2);
..and then two strings:
$frstHalfYear = $arr[0];
$secHalfYear = $arr[1];
..the output is following:
for $frstHalfYear: 2014
for $secHalfYear: 15
My question is : is it possible to convert 15
into a full year like 2014
.
This:
date("Y", strtotime($secHalfYear))
obviously is not working. The simple way would be to add 20
at the start of the string, but I was wondering if there is some more generic way..
Thank you