本文整理汇总了PHP中Encrypt::unix_filename方法的典型用法代码示例。如果您正苦于以下问题:PHP Encrypt::unix_filename方法的具体用法?PHP Encrypt::unix_filename怎么用?PHP Encrypt::unix_filename使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Encrypt
的用法示例。
在下文中一共展示了Encrypt::unix_filename方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Encrypt
$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);
//$p = $Entities->latin_text_chars_to_dec_ents($p);
$p = $Entities->acc_text_to_dec_ents($p);
$p = $Entities->acc_named_to_dec_ents($p);
$p = $Entities->cyr_text_chars_to_dec_ents($p);
$p = $Entities->cyr_named_chars_to_dec_ents($p);