I moved this switch system to the database in order to be able to edit when necessary in the administration panel.
However, I canβt query like this switch system
switch($kamera_sayisi){
case $kamera_sayisi <= 4 : $hedefsecenek= array(
"4", "8"); break;
case $kamera_sayisi <= 8 : $hedefsecenek= array(
"8", "16", "4-4"); break;
case $kamera_sayisi <= 12 : $hedefsecenek= array(
"16", "8-4", "4-4-4"); break;
case $kamera_sayisi <= 16 : $hedefsecenek= array(
"16", "32", "8-8", "4-4-4-4"); break;
case $kamera_sayisi <= 20 : $hedefsecenek= array(
"32", "16-4", "8-8-4", "8-8-8", "4-4-4-4-4"); break;
case $kamera_sayisi <= 24 : $hedefsecenek= array(
"32", "16-8", "8-8-8", "4-4-4-4-4-4"); break;
case $kamera_sayisi <= 28 : $hedefsecenek= array(
"32", "16-16", "8-8-8-4"); break;
case $kamera_sayisi <= 32 : $hedefsecenek= array(
"32", "16-16", "8-8-8-8", "4-4-4-4-4-4-4-4"); break;
}