此包已被废弃且不再维护。未建议替代包。

有用的PHP函数:来自CleverStyle CMS的系统无关函数集

5.0.0 2017-03-29 13:55 UTC

README

这只是一套有用的函数,它们或多或少都很简单。其中大部分是为CleverStyle框架编写的,但我希望它们对其他人也可能有用。

需求

  • PHP 7.0+

如何使用?

手动将upf.php包含到您的项目中,或者将对nazar-pc/upf的依赖添加到项目的composer.json文件中

{
    "require": {
        "nazar-pc/upf": "*"
    }
}

有文档吗?

函数有PHPDoc注释,请查看内部。

函数列表

  • _require ()
  • _include ()
  • _require_once ()
  • _include_once ()
  • time_limit_pause ()
  • get_files_list ()
  • file_extension ()
  • file_exists_with_extension()
  • rmdir_recursive()
  • null_byte_filter ()
  • prepare_attr_value ()
  • _stripslashes ()
  • _addslashes ()
  • _trim ()
  • _ltrim ()
  • _rtrim ()
  • _substr ()
  • _mb_substr ()
  • _strtolower ()
  • _strtoupper ()
  • _mb_strtolower ()
  • _mb_strtoupper ()
  • _json_encode ()
  • _json_decode ()
  • _json_decode_nocomments ()
  • file_put_json()
  • file_get_json()
  • file_get_json_nocomments()
  • _preg_match ()
  • _preg_replace ()
  • ip2hex ()
  • hex2ip ()
  • password_check ()
  • password_generate ()
  • xor_string ()
  • is_md5()
  • is_array_assoc ()
  • is_array_indexed ()
  • array_flip_3d ()
  • truncate ()
  • find_links()
  • path ()
  • keywords ()
  • description ()
  • ob_wrapper ()
  • mb_ucwords ()
  • _int ()
  • _float ()
  • _string ()
  • _array ()