asked on
$short_day = substr($this->long_day,0,3);
$matchDateRowTrOpen = '<tr>';
$matchDateRowTrClose = '</tr>';
// Get only the teams we want - Saturday or Sunday teams - from the array.
/*if ($short_day == 'Sat' || $short_day == 'Sun' )
{
$this->arr_one_day_matches = array_filter($this->arr_one_day_matches, function ($team) {
return ($team['td_class_satsun'] == $short_day);
});
}
*/
// Get only the teams we want - Saturday or Sunday teams - from the array.
if ($short_day == 'Sat')
{
$this->arr_one_day_matches = array_filter($this->arr_one_day_matches, function ($team) {
return ($team['td_class_satsun'] == 'Sat');
});
}
// Get only the teams we want - Saturday or Sunday teams - from the array.
if ($short_day == 'Sun' )
{
$this->arr_one_day_matches = array_filter($this->arr_one_day_matches, function ($team) {
return ($team['td_class_satsun'] == 'Sun');
});
}