Why is my PHP multi dimensional array not working?

前端 未结 4 1941
萌比男神i
萌比男神i 2021-01-16 12:26

My multi-dimensional array is working. But I cannot seem to use explode or in_array to limit the array when calling via $_GET

4条回答
  •  情歌与酒
    2021-01-16 12:57

    Your col-Variable contains a number (1, 2 or 3) But the explode-call returns an Array containing words (green, blue, orange)

    Even though PHP could handle the cast from 1 to "1", it can not cast from 1 to "green".

提交回复
热议问题