本文整理汇总了PHP中Encrypt::fix_filename_str方法的典型用法代码示例。如果您正苦于以下问题:PHP Encrypt::fix_filename_str方法的具体用法?PHP Encrypt::fix_filename_str怎么用?PHP Encrypt::fix_filename_str使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Encrypt
的用法示例。
在下文中一共展示了Encrypt::fix_filename_str方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
$ent_double_quotes = isset($_REQUEST['ent_double_quotes']) ? $_REQUEST['ent_double_quotes'] : '';
$ent_lt_gt = isset($_REQUEST['ent_lt_gt']) ? $_REQUEST['ent_lt_gt'] : '';
$ent_hyphenminus = isset($_REQUEST['ent_hyphenminus']) ? $_REQUEST['ent_hyphenminus'] : '';
$safe_numbers = isset($_REQUEST['safe_numbers']) ? $_REQUEST['safe_numbers'] : '';
$safe_latin_chars = isset($_REQUEST['safe_latin_chars']) ? $_REQUEST['safe_latin_chars'] : '';
$p = '';
$p1 = '';
$p3 = '';
$p4 = '';
$p5 = '';
if (!empty($source)) {
$p1 = $source;
if (!isset($Encrypt) || empty($Encrypt)) {
$Encrypt = new Encrypt();
}
$p1 = $Encrypt->fix_filename_str($p1);
if (!isset($Translit) || empty($Translit)) {
$Translit = new Translit();
}
$p1 = $Translit->Transliterate($p1);
$p1 = $Encrypt->unix_filename($p1);
$p = $source;
if (!isset($Entities) || empty($Entities)) {
$Entities = new Entities();
}
$p = $Entities->ipa_text_to_dec_ents($p);
/* this replacement should be done before any other
conversion to numeric entities */
//$p = $Entities->text_digits_to_dec_ents($p);
$p = $Entities->text_symbs_to_dec_ents($p);
$p = $Entities->named_symbs_to_dec_ents($p);