Good evening, I have two Arrays:
$array1 = (
[0] => Array ("Nome":"Rodrigo","CPF":"123456789-00","Cargo":"Abestado")
[1] => Array ("Nome":"Maria","CPF":"987654321-00","Cargo":"Abestada")
$array2 = (
[0] => Array ("CPF":"123456789-00","Titulo de Eleitor":"456789123")
[1] => Array ("CPF":"987654321-00","Titulo de Eleitor":"987564123")
In these arrays I have many records. What I want to know is if you can make an appointment for the CPF between the arrays. So I look for $ array $ CPF1 = CPF from $ array2. When the result is TRUE, I want the data that differs between arrays to be imbued in $ array3:
$array3 = (
[0] => Array ("Nome":"Rodrigo","CPF":"123456789-00","Cargo":"Abestado","Titulo de Eleitor":"987564123")
[1] => Array ("Nome":"Maria","CPF":"987654321-00","Cargo":"Abestada","Titulo de Eleitor":"987564123")
Is this possible?
Thanks in advance for your help