Untitled

mail@pastecode.io avatar
unknown
php
4 years ago
2.7 kB
13
Indexable
Never
<?php

$dataSrc = array(
    '1@02@43@170@1',
    '1@02@43@176@1',
    '1@02@43@182@1',
    '1@02@42@182@1',
    '1@02@42@176@1',
);
$resp = array(
    43 => array(
        170,
        176,
        182
    ),
    42 => array(
        176,
        182
    ),
);
$dataSrc2 = array(
    '1@02@43@170@1',
    '1@02@43@176@1',
    '1@02@43@182@1',
    '1@02@42@182@1',
    '1@02@42@176@1',
    '1@03@43@170@1',
    '1@03@43@176@1',
    '1@03@43@182@1',
    '1@03@42@182@1',
    '1@03@42@176@1',
);
$resp2 = array(
    '02' => array(
        43 => array(
            170,
            176,
            182
        ),
        42 => array(
            176,
            182
        ),
    ),
    '03' => array(
        43 => array(
            170,
            176,
            182
        ),
        42 => array(
            176,
            182
        ),
    )
);
$dataSrc3 = array(
    '1@02@43@170@1',
    '1@02@43@176@1',
    '1@02@43@182@1',
    '1@02@42@182@1',
    '1@02@42@176@1',
    '1@03@43@170@1',
    '1@03@43@176@1',
    '1@03@43@182@1',
    '1@03@42@182@1',
    '1@03@42@176@1',
    '2@02@43@170@1',
    '2@02@43@176@1',
    '2@02@43@182@1',
    '2@02@42@182@1',
    '2@02@42@176@1',
    '2@03@43@170@1',
    '2@03@43@176@1',
    '2@03@43@182@1',
    '2@03@42@182@1',
    '2@03@42@176@1',
);

$resp2 = array(
    1 => array(
        '02' => array(
            43 => array(
                170,
                176,
                182
            ),
            42 => array(
                176,
                182
            ),
        ),
        '03' => array(
            43 => array(
                170,
                176,
                182
            ),
            42 => array(
                176,
                182
            ),
        )
    ),
    2 => array(
        '02' => array(
            43 => array(
                170,
                176,
                182
            ),
            42 => array(
                176,
                182
            ),
        ),
        '03' => array(
            43 => array(
                170,
                176,
                182
            ),
            42 => array(
                176,
                182
            ),
        )
    ),
    3 => array(
        '02' => array(
            43 => array(
                170,
                176,
                182
            ),
            42 => array(
                176,
                182
            ),
        ),
        '03' => array(
            43 => array(
                170,
                176,
                182
            ),
            42 => array(
                176,
                182
            ),
        )
    ),
);
?>