Home > Backend Development > PHP Tutorial > 一个数组的变换

一个数组的变换

WBOY
Release: 2016-06-13 12:46:50
Original
928 people have browsed it

一个数组的转换
我想把这个数组转换一下,$array = array('name'=>array('aaaa','bbbb','ccccc'),'uid'=>array('1111','2222','3333'));

这样的效果
$k=array(array('name'=>'aaaa','uid'=>'1111'),array('name'=>'bbbb','uid'=>'2222'),array('name'=>'cccc','uid'=>'3333'));

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