##Universal Language Tool for PHP## - Пример коришћења ћирилице |
Пример пресловљавања ћириличне стране у латиничну |
<?php //this code deals with passing parameters if ($HTTP_POST_VARS) { foreach(array_keys($HTTP_POST_VARS) as $Var) { $$Var=$HTTP_POST_VARS[$Var]; }; }; if ($HTTP_GET_VARS) { foreach(array_keys($HTTP_GET_VARS) as $Var) { $$Var=$HTTP_GET_VARS[$Var]; }; }; include_once('ult.php'); // include Universal Language Tool library in page code // language id parameter is stored in $lang // we have to initialize it if parameter value not passed if (! $lang) $lang = 'sr'; // create language object, this will also load all language //definitions stored in -lang directory $dvl = new ULT; // now set source language (language that is used to design page) ?>
|
english Fatal error: Cannot access empty property in /home/dvoyage/subdomains/ult/cirilica.php on line 148 |