Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Unicode words from online dictionary (See related posts)

// list words from unicode dictionary
// you need to add this line in the head section
// <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

for ( $i = 1; $i <= 45; $i++) {
$url="http://dsal.uchicago.edu/cgi-bin/romadict.pl?page=$i&table=molesworth&display=utf8";
$text=file_get_contents($url);
$myarray = preg_match_all('#<font size="\+1">(.*?)</font>#i', $text, $matches);
echo implode(' ',$matches[1]); 
}

You need to create an account or log in to post comments to this site.


Click here to browse all 5140 code snippets

Related Posts