阅读背景:

重组数组:奇数条目为KEY,偶数条目为VALUE

来源:互联网 

I'm trying to finish up a URL router that I created for my custom MVC framework. I have a list of parameters that I dissected from the URL, but the problem is that they only have numerical keys. What I want to do is set it up so the first value in the $params array will be the KEY and then the second value in the array is the VALUE of the first KEY. But I need to take it beyond that even further. Essentially, I need all odd number key's value in the array to be the new KEY and the even number key's value to be the value.I'm trying to finish up a URL router that I cre




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: