1
2
3
4
5
6
7
8
9
10
11
12
|
$k
=0;
foreach
(
$return
as
$k
=>
$v
){
// print_r($v);
$new
[
$k
][
'url'
] =
$v
[
'0'
][
'url'
];
$new
[
$k
][
'pic'
] =
$v
[
'0'
][
'pic'
];
$new
[
$k
][
'buildingArea'
] =
$v
[
'0'
][
'buildingArea'
];
$new
[
$k
][
'villageName'
] =
$v
[
'0'
][
'villageName'
];
$new
[
$k
][
'shi'
] =
$v
[
'0'
][
'shi'
][
'0'
];
$new
[
$k
][
'shiting'
] =
$v
[
'0'
][
'shiting'
];
$new
[
$k
][
'price'
] =
$v
[
'price'
];
}
return
$new
;
|
本文转自 liang3391 51CTO博客,原文链接:http://blog.51cto.com/liang3391/1843843