I ran into a problem trying to get a unique array from two two multidimensional array, failed to do so.
I've tried search on solutions, but everything I can thing is only about one array.
Here are the two arrays.
Array
(
[1] => Array
(
[title] => Strongest Links - Directory list
[promotion] => At Strongest Links you can find good linking partners, track directory submission and manage your online promotion campaign. Try it for free.
[domain] => http://www.strongestlinks.com
)
)
Array
(
[0] => Array
(
[title] => Strongest Links - Directory list
[kbsize] => 88820
[url] => http://www.strongestlinks.com/directories.php
[meta_description] => At Strongest Links you can find good linking partners, track directory submission and manage your online promotion campaign. Try it for free.
[kbsize_t] => 88.82kb
)
[3] => Array
(
[title] =>
Strongest Links - Directory list
[kbsize] => 20303
[url] => http://www.strongestlinks.com/directories/369
[meta_description] => At Strongest Links you can find good linking partners, track directory submission and manage your online promotion campaign. Try it for free.
[kbsize_t] => 20.303kb
)
[4] => Array
(
[title] => Strongest Links - Directory list
[kbsize] => 20366
[url] => http://www.strongestlinks.com/directories/317
[meta_description] => At Strongest Links you can find good linking partners, track directory submission and manage your online promotion campaign. Try it for free.
[kbsize_t] => 20.366kb
)
[5] => Array
(
[title] => SmartLinks.org - News, Reference, Facts - QuickLinks
[kbsize] => 95526
[url] => http://www.smartlinks.org
[meta_description] => SmartLinks.org - QuickLinks/Favorites - News, Reference, Facts and Topics organized by Categories.
[kbsize_t] => 95.526kb
)
)
I'm trying to make a function which compare url field from array 1 with domain field from array 2, and returns array 1 minus elements which are also found in array 2.
And even better function would also be if it could compare the field url in array 1 with domain field in array 2, and return with how much the two fields are matching.
pastieto your question. Click edit.