php 数组转1维

WBOY
Release: 2016-06-13 13:17:58
Original
863 people have browsed it

php 数组转一维

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

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

)
#通过库函数将上面数组变成下面这个样子:$res=array_map("array_pop",$arr);
Array
(
    [0] => 9
    [1] => 42
)
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!