/* * 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; } } } } }
Creepy crawlies decline as human population soars
The study, published in the journal Science, revealed that as the human population has doubled over the last 35 years to now stand at more than seven billion, invertebrate numbers have fallen by nearly half over the same period.
Experts fear this could have an effect on ecosystems as insects, spiders, crustaceans slug and worms play an important role in pollinating crops, pest control, decomposition and ensuring soil remains packed with nutrients, as well as water filtration.
...
"While we don't fully understand what the long-term impact of these declining numbers will be, currently we are in the potentially dangerous position of losing integral parts of ecosystems without knowing what roles they play within it.
"Prevention of further declines will require us to better understand what species are winning and losing in the fight for survival and from studying the winners, apply what we learn to improve conservation projects.
"We also need to develop predictive tools for modelling the impact of changes to the ecosystem so we can prioritise conservation efforts, working with governments globally to create supportive policy to reverse the worrying trends we are seeing."