Hello.
In the snippet, you accept the value of their attribute. Then you can do whatever you want with it. For example you received:
$studievariant ="voltijd, deeltijd";
You can divide this text into parameters:
$array = explode(',', $studievariant);
/*
$array = [
'voltijd',
'deeltijd'...