Hello!
I hve a question, how I can display last 3 years? i.e I would like to display them in the second format -
2013, 2012, 2011, All(...)
P.S in All I want to display all other years...
Here is code how I get year list now(it displays all years):
if (!empty($year_list))
{
foreach ($year_list as $key => $year)
{
$year = array_unique($year);
rsort($year, SORT_NUMERIC);
foreach ($year as $g)
{
if ($key != ' ' && $g != '')
$div_date .= "<span id='".$g."' class='filial_r15 ".$key."'>".$g."</span> ";
}
}
}
$data['result']['year_list'] = $div_date;
P.P.S I am new in PHP, so someone of you this question may seem very simple... but I stuck there=(