<?php
include_once('simplehtmldom/simple_html_dom.php');
$html = file_get_html('http://dict.ruslang.ru/freq.php?act=show&dic=freq_news_comp&title=%D1%EB%EE%E2%E0%F0%FC%20%E7%ED%E0%F7%E8%EC%EE%E9%20%E3%E0%E7%E5%F2%ED%EE-%ED%EE%E2%EE%F1%F2%ED%EE%E9%20%EB%E5%EA%F1%E8%EA%E8');
$myFile = "file.txt";
$fh = fopen($myFile, 'w') or die("can't open file");
$table=$html->find('table',1);
foreach($table->find('td') as $td)
fwrite($fh, $td->plaintext);
fclose($fh);
?>
Download simplehtmldom from the same link you provided..
copy it in the same folder
make sure the path inluded in the code refers to right class
make file.txt file in same folder..
and run the code...
You have
' '
extra which you can remove from php string functions..