woothemes/woocommerce — pull request #505 by GeertDD (2012-01-16 06:49:25+00:00)
Title: Optimizations to the countries class

Note that the old `get_base_country()` and `get_base_state()` methods used `strstr` to check for a `:`. The [PHP manual recommends](php.net/manual/en/function.strstr.php) using `strpos` for this:

> If you only want to determine if a particular needle occurs within haystack, use the faster and less memory intensive function `strpos()` instead.

Also, I got rid of the double `explode()`.