I\'m having two arrays as follows:
$user_ids = Array ( [0] => 159a8a6f1c00c5c4d5d0daaab2aa4227 [1] => a39777761f7816031aec676c80c3a8ad [2] =>
Refer: http://phpfiddle.org/main/code/8ni-kjz
while ($match = current($user_status)) { if ($match == 'disable') { $id = key($user_status); objAdminUsers->UpdateUserStatus($user_ids[$id], $user_status[$id]); $count++; } next($user_status); }