Main Content

What language is this written in?

Archive - Originally posted on "The Horse's Mouth" - 2005-05-17 18:54:07 - Graham Ellis

It's been a long day ... I'm not sure whether to write about my drive back from Gatwick Airport this morning through the beautiful National Trust Woods at Holmwood, Abinger Hammer with its curious clock that hangs over the road, the Hog's Back where I stopped for a bacon buttie ... then on past Stonehenge and over Salisbury Plain.

No - you KNOW the beauty of this country already. I'll write about a piece of coding that I've just completed. Can you work our the language??

if ($dirin == "$page{dir}" and $parts[0] == "$page{key}.html") {
for ($k=1; $k<count($parts); $k++) {
$state = implode(" ",explode("-",$parts[0]));
$state = preg_replace('/\.html/','',$state);
$forumlinks .= "<a href='/resources/$parts[$k].html'>Link to technical articles</a><br>";
break; # first only
}
}

Yes, we'll teach you all the subjects involved.

Answer tomorrow

.... Oops .... it's the day AFTER tomorrow ... I'll answer in a comment so that other folks can "play" the question without having the answer thrust in their face first ...