$filterStudents = $search !== null ? [
'filter[entry_year]' => $entry_year,
'filter[search]' => $search,
'relation[student_group]' => 1,
'page' => (int)$page,
'per_page' => 20,
] : [
'filter[entry_year]' => $entry_year,
'relation[student_group]' => 1,
'page' => (int)$page,
'per_page' => 20,
];
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter