Home > Backend Development > PHP Tutorial > 关于数组拆分

关于数组拆分

WBOY
Release: 2016-06-23 13:03:41
Original
876 people have browsed it

如图 现在$order_id的值是 0=‘315,313’ 是两条数据分别的ID 我如何能操作使其变成 0=315 1=313 这样形式的数组 有没这样的函数可能操作 在线等 急!!!麻烦各路好手帮帮忙


回复讨论(解决方案)

$order_id = explode(',',$_REQUEST['order_id']);
Copy after login

十分感谢!可以了!谢谢

Related labels:
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