vendredi 6 juillet 2018

Diff of one array key and second array vale

I have two arrays:

  1. ['Test' => 1, 'Test2' => 2, 'Test3' => 3, ...]

  2. ['0' => 'Test', '1' => 'SomeTest', ...]

I want to get diff of array keys first array and array values second.

Result array:

['Test2' => 2, 'Test3'=>3]



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire