/* * Patch for filter_var() */ if(!function_exists('filter_var')){ define('FILTER_VALIDATE_IP', 'ip'); define('FILTER_FLAG_IPV4', 'ipv4'); define('FILTER_FLAG_IPV6', 'ipv6'); define('FILTER_VALIDATE_EMAIL', 'email'); define('FILTER_FLAG_EMAIL_UNICODE', 'unicode'); function filter_var($variable, $filter, $option = false){ if($filter == 'ip'){ if($option == 'ipv4'){ if(preg_match("/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/", $variable, $matches)){ $variable = $matches[1]; return $variable; } } if($option == 'ipv6'){ if(preg_match("/\s*(([:.]{0,7}[0-9a-fA-F]{0,4}){1,8})\s*/", $variable, $matches)){ $variable = $matches[1]; return $variable; } } } if($filter == 'email'){ if($option == 'unicode' || $option == false){ if(preg_match("/\s*(\S*@\S*\.\S*)\s*/", $variable, $matches)){ $variable = $matches[1]; return $variable; } } } } }
Not smart enough to be raw foodists, or to out-compete modern humans.Well, I suspect they must have been partially raw like the Inuit. Also, greater intelligence does NOT necessarily imply a greater chance of survival. I only have to look at family and acquaintances around me to see this. The really intelligent people I know virtually all have no children, with a very few having at most two, if that. The stupid relatives and acquaintances I know commonly have 2 or 3 children per couple. In the case of the Neanderthals, they lived in much harsher climates than early modern humans, which was another factor in their demise. One other possibility mentioned by archaeologists is that the arrival of early modern humans caused mass epidemics among the Neanderthals which wiped them out, and no amount of intelligence at that time could solve that problem.