'; $urls = ''; $count = 0; foreach ($list_city as $city) { $city = strtolower(str_replace(" ", "-", $city)); if ($count != 0) { if ($city != NULL) $urls[] .= 'http://'.$start_domain.''.$city.'.'.domain_short.'/'; } $zipit = explode(",", $list_zip[$count]); foreach ($zipit as $zip) { if ($zip != NULL) $urls[] .= 'http://'.$start_domain.''.$zip.'.'.domain_short.'/'; } $neighborhood_l = explode(",", $list_neighborhood[$count]); foreach ($neighborhood_l as $neighborhood) { if ($neighborhood != NULL) { $neighborhoodu = strtolower(str_replace(" ", "-", $neighborhood)); $urls[] .= 'http://'.$start_domain.''.$neighborhoodu.'.'.domain_short.'/'; } } $count++; } $urls = array_unique($urls); $countall = 0; function check_number($parameter) { $parameter = str_replace("http://", "", $parameter); $parameter = str_replace("www.", "", $parameter); $parameter = substr($parameter, 4); $flag = 0; $pos = strpos($parameter, "0"); if ($pos != 0) $flag = 1; $pos = strpos($parameter, "1"); if ($pos != 0) $flag = 1; $pos = strpos($parameter, "2"); if ($pos != 0) $flag = 1; $pos = strpos($parameter, "3"); if ($pos != 0) $flag = 1; $pos = strpos($parameter, "4"); if ($pos != 0) $flag = 1; $pos = strpos($parameter, "5"); if ($pos != 0) $flag = 1; $pos = strpos($parameter, "6"); if ($pos != 0) $flag = 1; $pos = strpos($parameter, "7"); if ($pos != 0) $flag = 1; $pos = strpos($parameter, "8"); if ($pos != 0) $flag = 1; $pos = strpos($parameter, "9"); if ($pos != 0) $flag = 1; return $flag; } foreach ($urls as $ur) { $numtocheck = check_number($ur); if ($numtocheck == 0) { foreach ($e_locksmith_exp as $service) { if ($countall < 45000) { $service_link = strtolower(str_replace(" ", "-", $service)); echo ' '.$ur.''.$service_link.'.html monthly 0.5 '; } $countall++; } } } echo ' '; ?>