$user['id'] ?? '-', 'notes' => $user['notes'] ?? '-', 'parent_id' => $user['parent_id'] ?? '-', 'max_nodes_per_pid' => $user['max_nodes_per_pid'] ?? '-' ]; }, $response['items']); // Filter out users with PIDs in the excludedPIDs array $user_list = array_filter($user_list, function($user) use ($excluded_pids) { return !in_array($user['id'], $excluded_pids); }); $_SESSION['userlist']=$user_list; } else { $user_list = "No users found or invalid response format."; } ?>