【发布时间】:2015-03-08 04:35:31
【问题描述】:
array(22) {
[0]=>
array(5) {
["name"]=>
string(33) "White shirt - blue logo"
["price"]=>
string(5) "10.00"
["img"]=>
string(5) "2.jpg"
["text"]=>
string(865) "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
["url"]=>
string(26) "voltarity-white-red-shirt2"
}
another array...
another array...
}
所以我想将我的数组键 [0] 更改为我在 ["url"] 中的值,可以吗? 顺便说一句,该数组是从 mysql 数据库创建的。
【问题讨论】:
标签: php mysql arrays replace key