-1
a comparison is being made:
this way
$result3 = array_diff($fetchForm, $items['form_id']);
print_r($result3);
Array
(
[0] => 1
[2] => 3
)
$result2 = array_diff($items['form_id'], $fetchForm);
print_r($result2);
Array
(
[1] => 4
)
so that way
Array
(
[0] => 1
[1] => 3
)
Array
(
[0] => 4
)
I don’t understand the question. And these arrays that you showed, are the diff input?
– bfavaretto
these arrays are the exits
– Willian
What do you mean "the" exits?
array_diff
returns one array. And what would be the entries then?– bfavaretto
It seems to me that we missed the clear question. Edit there and try to explain better to try to help.
– Tony
lost yes... but this and another part more the front Kela part I could not solve for now I am developing this one then you will return there you will publish it to see if you can give me a hand
– Willian
then are two inputs so 2 array... actually and 1 input just there matches the database there separates into 2 array
– Willian
You have 2
array_diff
?– Papa Charlie
yes... I edited it... the diff is the opposite of the other
– Willian
thanks staff @Papacharlie solved :D
– Willian