I am calling API through postman and passing following parameters.
reason: string
staff_ids[]:
When pass staff_ids
blank then I got [null]
in server-side.
so that the condition gets always true.
if(isset($request->staff_ids) && !empty($request->staff_ids)){
//
}
Is there any way to check if array has [null]
?