Hi Helen,
thanks for the info on code formatting
Here's what I was trying to write earlier:
[code php]
$languages = get_list_of_languages();
foreach ($languages as $key => $name) {
$key = str_replace('_', '-', str_replace('_utf8', '', $key));
$strlangarray .= '"'.$key.'": "'.$key.'",';
}
[/code]
Oh, that doesn't seem to work how I was expecting. I was expecting the [code] tags to be removed and the "foreach" to be highlighted in some way. Hmmm ... I wonder what I did wrong?