Home > php教程 > php手册 > PHP数组转置

PHP数组转置

WBOY
Release: 2016-06-07 11:45:17
Original
1309 people have browsed it

PHP数组转置
function rotate($a){<br>     $b=array();<br>      foreach($a as $val){<br>          foreach($val as $k=>$v){<br>            $b[$k][] = $v;<br>         }<br>      }<br>  return $b;<br> }

AD:真正免费,域名+虚机+企业邮箱=0元

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template