Example, how to use it in PHP (why didn't I post this before?):
Code: Select all
<?php
// read the table (original is with ; separator, this function expects ,)
$array = array_map('str_getcsv', file('table.csv')); // reads csv into php array
$subject = "ÃĘЯЯ@"; // example input
foreach ($array as $row) { // do the same for every latin char
$latin = array_shift($row); // first one is latin, following are any char we want to replace
$subject = str_ireplace($row, $latin, $subject); // replace them case-insensitively
}
echo $subject;
?>