I\'m having two arrays as follows:
$user_ids = Array ( [0] => 159a8a6f1c00c5c4d5d0daaab2aa4227 [1] => a39777761f7816031aec676c80c3a8ad [2] =>
Maybe like this?
$user_ids = explode(',', $request['items']); $user_statuses = explode(',', $request['user_status']); foreach ($user_statuses as $key => $user_status) { if(user_status=='disable') { $objAdminUsers->UpdateUserStatus($user_ids[$key], $user_status); } }