Hi phpfreak-ers,
$BigArray[] = array('url' => 'www.example.com', 'referer' => 'refer1');
$BigArray[] = array('url' => 'www.demo.com', 'referer' => 'refer1');
$SmallArray[] = array('url' => 'www.example.com', 'referer' => 'refer2');
Basically I want to compare the two example arrays (above) and if a duplicate 'url' is found then I'd like to merge the 'referer' values in $BigArray otherwise add as an additional record.
So I should be left with:
Not syntax just used to explain my objective
$BigArray url='www.example.com', 'referer' = 'refer1refer2'.
$BigArray url='www.demo.com', 'referer' = 'refer1'.
I've tried a day and a half worth of approaches and can't get it working.
Thanks for your help in advance!
Matt