Ad
  • Custom User Avatar

    You need to return the call of the function. array_diff(a, b) should be return array_diff(a, b). Your code recursively recalls the function but there is nothing to return, therefore the default value is "undefined".