我一直试图找到这个问题的答案一段时间,但我无法......所以我不得不问一个问题......
简而言之,我不会发布任何我拥有的代码,而是直接提出问题。
我有看起来像这样的数组:
Array
(
[0] => Array
(
[0] => ID09666
[1] => ID14366
[2] => ID8174
[3] => ID4106
)
[1] => Array
(
[0] => /title_is_fantastic/
[1] => /what_an_awesome_title/
[2] => /great_title/
[3] => /awesome_title/
)
[2] => Array
(
[0] => Title is fantastic
[1] => What an awesome title
[2] => Great title
[3] => Awesome title
)
[4] => Array
(
[0] => 100%
[1] => 86%
[2] => 76%
[3] => 68%
)
)
我需要添加到数据库的值是:
ID = ID09666
url = /title_is_fantastic/
title = Title is fantastic
percent = 100%
那么如何才能最快地将这些值添加到数据库中呢?我对这个数组感到非常困惑,因此感谢您的帮助。
谢谢!