当前位置:Gxlcms > PHP教程 > 数组关系婚配

数组关系婚配

时间:2021-07-01 10:21:17 帮助过:7人阅读

数组关系匹配
本帖最后由 lazygc520 于 2013-08-21 14:16:17 编辑

已知数组a:

array(4) {
[0]=>
array(3) {
[0]=>
string(13) "SU13080800340"
[1]=>
string(10) "310F61VA5A"
[2]=>
string(1) "3"
}
[1]=>
array(3) {
[0]=>
string(13) "SU13080800345"
[1]=>
string(10) "310F61VA5A"
[2]=>
string(2) "23"
}
[2]=>
array(3) {
[0]=>
string(13) "SU13080800338"
[1]=>
string(10) "310F61VA5A"
[2]=>
string(1) "3"
}
[3]=>
array(3) {
[0]=>
string(13) "SU13080800346"
[1]=>
string(10) "310F61VA5A"
[2]=>
string(2) "25"
}
}


再者数组b:

array(8) {
[0]=>
array(2) {
[0]=>
string(12) "CVT121015001"
[1]=>
string(11) "310F6 1VA5A"
}
[1]=>
array(2) {
[0]=>
string(12) "CVT121015002"
[1]=>
string(11) "310F6 1VA5A"
}
[2]=>
array(2) {
[0]=>
string(12) "CVT121226001"
[1]=>
string(11) "310F6 1VA5A"
}
[3]=>
array(2) {
[0]=>
string(12) "CVT121226002"
[1]=>
string(11) "310F6 1VA5A"
}
[4]=>
array(2) {
[0]=>
string(12) "CVT121226003"
[1]=>
string(11) "310F6 1VA5A"

人气教程排行