Login   Register  
PHP Classes
elePHPant
Icontem

File: demo2.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Nemanja Avramovic  >  Translit-SR  >  demo2.php  >  Download  
File: demo2.php
Role: Example script
Content type: text/plain
Description: Example of usage with ability to skip HTML tags
Class: Translit-SR
Transliterate Serbian Cyrillic to Latin characters
Author: By
Last change: removed BOM signature because file is utf-8 encoded
Date: 7 years ago
Size: 415 bytes
 

Contents

Class file image Download
<?php

include "Translit.class.php";

$translit = new Translit();
$translit->html_aware true//when this is true, Translit will skip transliterating cyrilic within html tags
$translit->case_sensitive false//this applies only if html_aware is set to true
echo $translit->Transliterate('<a href="http://hidrogeologija.avramovic.org/?home=тест ћирилице">Филипов сајт</a>');

?>