Re: [PHP] Last array element not found

2006-03-15 Thread Robin Vickery
On 15/03/06, Roman Rumisek <[EMAIL PROTECTED]> wrote: > Hi, > > this code fragment give following result in my error log: > > foreach($reg_array as $region_item) > $tmp_reg_array[] = $region_item[0]; > $sel_region = explode(',', $_POST[CLIENT_REGION]); > foreach($sel_region as $sel_region_item) >

[PHP] Last array element not found

2006-03-15 Thread Roman Rumisek
Hi, this code fragment give following result in my error log: foreach($reg_array as $region_item) $tmp_reg_array[] = $region_item[0]; $sel_region = explode(',', $_POST[CLIENT_REGION]); foreach($sel_region as $sel_region_item) if(!in_array($sel_region_item, $tmp_reg_array)) { my_error_lo