array(2) { [0]=> string(1) "1" [1]=> string(1) "2" } ["buy_number"]=> array(2) { [0]=> string(2) "22" [1]=> string(2) "22" } ["buy_price""/> array(2) { [0]=> string(1) "1" [1]=> string(1) "2" } ["buy_number"]=> array(2) { [0]=> string(2) "22" [1]=> string(2) "22" } ["buy_price"">

Home  >  Article  >  Backend Development  >  php 中怎么 循环提取三维数组的数据

php 中怎么 循环提取三维数组的数据

WBOY
WBOYOriginal
2016-06-02 11:31:231376browse

php

array(3) {
["goods_id"]=>
array(2) {
[0]=>
string(1) "1"
[1]=>
string(1) "2"
}
["buy_number"]=>
array(2) {
[0]=>
string(2) "22"
[1]=>
string(2) "22"
}
["buy_price"]=>
array(2) {
[0]=>
string(5) "20.00"
[1]=>
string(5) "20.00"
}
}
这种数组 我怎么循环能得到 【0】对应的一组数据,【1】对应的一组数据

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