I have an array, which contains data as follows:
Array (
[0] => Array (
[www.google.com] => www.google.com/a
)
[1] => Array (
[www.google.com] => www.google.com/a
)
[2] => Array (
[www.test.com] => www.test.com
)
[5] => Array (
[www.test.com] => www.test.com/c
)
)
I need to grup all links for particular url like this:
Array (
[www.google.com] => Array (
[0] => www.google.com/a
[1] => www.google.com/a
)
[www.test.com] => Array (
[0] => www.test.com
[1] => www.test.com/c
)
)
Please any help for this?
If we call the first array
$domains.That might work…