How to marge array result with same value, i was try array_unique but seems does not work for me
Code:
$row_content = mysql_fetch_assoc($sql);
$array = unserialize($row_content['content_id']);
foreach($array as $row) {
print_r($row);
}
Here is result
Array
(
[0] => v
[1] => 2040
)
Array
(
[0] => v
[1] => 526
)
Array
(
[0] => v
[1] => 200
)
Array
(
[0] => p
[1] => 2040
)
Array
(
[0] => p
[1] => 600
)
Need to merge [1] or 2040 in this example, also value V or P it does not matter here
Edit:
This is what i need to get as result
Array
(
[1] => 200
)
Array
(
[1] => 526
)
Array
(
[1] => 600
)
Array
(
[1] => 2040
)