Home  >  Article  >  Backend Development  >  php 数组转1维

php 数组转1维

WBOY
WBOYOriginal
2016-06-13 13:17:58860browse

php 数组转一维

Array
(
    [0] => Array
        (
            [cat_id] => 9
        )

    [1] => Array
        (
            [cat_id] => 42
        )

)
#通过库函数将上面数组变成下面这个样子:$res=array_map("array_pop",$arr);
Array
(
    [0] => 9
    [1] => 42
)
?
Statement:
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
Previous article: 怎么重定义常量 Next article: php给图片平添水印