Hello, i'm totally new to php and I'm trying to figure something out using php.
I have 2 arrays and I need to grab the values of the arrays if the keys match in the arrays.
Here is what i'm trying to do.
$array1 = ("Jeff", "kevin", Jeff", "Sally");
$array2 = ("20", "34", "19", "340");
I need to add the values of the matching keys,
so I would want to see
Jeff 39
Kevin 34
Sally 340
how can I accomplish this?
thanks