fork download
  1. <?php
  2.  
  3. // your code goes here
  4. $arr1 = array(
  5. 0 => 'ultimoteste3',
  6. 1 => 'ultimoteste3',
  7. 2 => 'Rodrigues',
  8. 3 => 'ultimoteste3@hotmail.com',
  9. 4 => '2',
  10. 5 => 'Teste Curso');
  11.  
  12. $arr2 = array(
  13. 0 => 'username',
  14. 1 => 'firstname',
  15. 2 => 'lastname',
  16. 3 => 'email',
  17. 4 => 'lang',
  18. 5 => 'course1',
  19. 6 => 'type1',
  20. 7 => 'auth');
  21.  
  22. print_r(array_diff($arr1, $arr2));
Success #stdin #stdout 0.02s 52432KB
stdin
Standard input is empty
stdout
Array
(
    [0] => ultimoteste3
    [1] => ultimoteste3
    [2] => Rodrigues
    [3] => ultimoteste3@hotmail.com
    [4] => 2
    [5] => Teste Curso
)