[ create a new paste ] login | about

Link: http://codepad.org/f9KjbCCb    [ raw code | output | fork ]

PHP, pasted on Jan 6:
1
2
3
4
5
6
<?php
$values = array(array(88868), array(88867), array(88869), array(88870));
foreach ($values as &$value) $value = $value[0];

print_r($values);
?>


Output:
1
2
3
4
5
6
7
Array
(
    [0] => 88868
    [1] => 88867
    [2] => 88869
    [3] => 88870
)


Create a new paste based on this one


Comments: