RE: [PHP] Personal statics
| From: | Moritz Petersen | Date: | Sun, 07 Jan 2001 13:45:18 +0000 |
| Subject: | RE: [PHP] Personal statics | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-33091@lists.php.net to get a copy of this message | ||
Or, more effective:
$country_array = array("com" => ".com US/int",
"net" => ".net US/int" // etc
);
echo $country_array[$tld];
CU
Mo.
> Something like this:
>
>
> switch ($country) {
>
> case "com":
> $country = ".com US/int";
> break;
> case "net":
> $country = ".net US/int";
> break;
> case "ca":
> $country = "Canada";
> break;
> case "uk":
> $country = "England";
> break;
> case "org":
> $country = ".org US/int";
> break;
> case "":
> $country = "Unkonw";
> break;
> }
>
> :: Emil
>
> ---
> Emil Rasmussen
> http://www.noget.net
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>