Lexica Botania Online
$value) { $entry_match = match_entry($key); $page_match = match_page($key, $current_entry); if(sizeof($entry_match) > 0) { $current_entry = $entry_match[1]; if($opened_div) echo(''); echo("
$value
"); echo("\n"); $opened_div = true; } if(sizeof($page_match) > 0) { $page = preg_replace('/&(.)((?:[^&])+)(?:(?:&(?:0|r))|$)/', "$2", $value) . '
'; $no_control = preg_replace('/&./', '', $value); if(strlen($no_control) > 50) { echo($page); echo("\n"); } } } echo('
'); function match($regex, $line) { $matches = array(); preg_match("/$regex/", $line, $matches); return $matches; } function match_entry($key) { return match('botania\.entry\.(\w+)', $key); } function match_page($key, $entry_name) { return match("botania\.page\.$entry_name\d+", $key); } ?>