How to get an array value after explode?

前端 未结 6 1202
感动是毒
感动是毒 2021-01-24 17:39

I have passed a value from one page to another in array. I can extract first two vars by explode but I can\'t get the third value which is formed in an array out.

This i

6条回答
  •  花落未央
    2021-01-24 17:48

    You could serialize your array parameters before you pass it. Then unserialize them on the 2nd page.

    $rate = serialize($rate);
    

    On your 2nd page before you run it through the loop:

    $rate = unserialize($rate);
    

提交回复
热议问题