Home >Backend Development >PHP Tutorial > php实现分组解决方案

php实现分组解决方案

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 13:43:221657browse

php实现分组

id=20的KAC下有:

id Pac
11 ABC001
12 ABC002
13 ABC001N.001
14 ABC002N.002
15 ABC511.001
16 ABC511.002
17 CHH512.001
18 CHH620N.001
19 CHH620N.002
20 CHH621N.001

这个如何用php实现详细分组???非常感谢。

------解决方案--------------------
$id = array(1, 2, 3, 4, 5);
$pac = array("ABC001", "ABC002", "ABC003", "ABC004", "ABC005");
$num = array(".001", ".002", ".003", ".004", ".005");
$d = array_map(null, $id, $pac, $num);
print_r($d);
?> 
这样?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn