<?php
'B' => array(100,200,300), 'C' => array(1000,2000,3000) );
function union($data)
{
$data_old = $data;
foreach($data_old as $key => $values)
{
{
for($i = 0; $i < count($values); $i++) {
}
}
}
return ($data_new);
}
PD9waHAKCiRkYXRhID0gYXJyYXkoCgknQScgPT4gYXJyYXkoMTAsMjAsMzApLAoJJ0InID0+IGFycmF5KDEwMCwyMDAsMzAwKSwKCSdDJyA9PiBhcnJheSgxMDAwLDIwMDAsMzAwMCkKCSk7CgpmdW5jdGlvbiB1bmlvbigkZGF0YSkKewoJJGRhdGFfb2xkID0gJGRhdGE7CiAgICAkZGF0YV9uZXcgPSBhcnJheSgpOwogICAgZm9yZWFjaCgkZGF0YV9vbGQgYXMgJGtleSA9PiAkdmFsdWVzKQogICAgewoJICAgIGlmIChpc19hcnJheSgkdmFsdWVzKSkKCSAgICB7CgkgICAgICAgIGZvcigkaSA9IDA7ICRpIDwgY291bnQoJHZhbHVlcyk7ICRpKyspCgkgICAgICAgIHsKCSAgICAgICAgICAgICRkYXRhX25ld1skaV1bXSA9IGFycmF5X3NoaWZ0KCRkYXRhX29sZFska2V5XSk7IAkJCgkgICAgICAgIH0JCgkgICAgfQogICAgfQoKICAgIHJldHVybiAoJGRhdGFfbmV3KTsJCn0KCnByaW50X3IodW5pb24oJGRhdGEpKTsK