Home > Backend Development > PHP Tutorial > Order desc,ID desc怎么转为数组?

Order desc,ID desc怎么转为数组?

WBOY
Release: 2016-06-23 13:28:03
Original
1483 people have browsed it

array('Order'=>'Desc','ID'=>'Desc') 转成这种格式


回复讨论(解决方案)

这个问题没看懂。

我也看不懂

parse_str(preg_replace(array('/\s+/', '/,/'), array('=', '&'), 'Order desc,ID desc'), $a);var_export($a);
Copy after login
array (  'Order' => 'desc',  'ID' => 'desc',)
Copy after login

学习 @xuzuning 大

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template