这是我的数组,我想添加一些元素使其像第二个数组
1.)
array(7) {
[0] => array(3) {
["name"] => string(9) "airG Chat"
["product_id"] => int(2469)
["price"] => string(4) "0.00"
}
[1] => array(3) {
["name"] => string(9) "PingChat!"
["product_id"] => int(7620)
["price"] => string(4) "0.00"
}
[2] => array(3) {
["name"] => string(25) "MobiEXPLORE Zagreb County"
["product_id"] => int(8455)
["price"] => string(4) "0.00"
}
}
添加项目后应该是这样的,我尝试使用每个功能但没有奏效。2.)
array(7) {
[0] => array(3) {
["name"] => string(9) "airG Chat"
["product_id"] => int(2469)
["price"] => string(4) "0.00"
["description"] => string(23) "this is the custom test"
["brief_description"] => string(23) "this is the custom test"
}
[1] => array(3) {
["name"] => string(9) "PingChat!"
["product_id"] => int(7620)
["price"] => string(4) "0.00"
["description"] => string(23) "this is the custom test"
["brief_description"] => string(23) "this is the custom test"
}
[2] => array(3) {
["name"] => string(25) "MobiEXPLORE Zagreb County"
["product_id"] => int(8455)
["price"] => string(4) "0.00"
["description"] => string(23) "this is the custom test"
["brief_description"] => string(23) "this is the custom test"
}
}