function CsubStrPro($str, $start, $length, $charset = "utf-8", $suffix = false)
{
if (function_exists ( "mb_substr" ))
return mb_substr ( $str, $start, $length, $charset );
$... 2013-7-5 15:15 Friday
2013-6-21 17:15 Friday
<?php
function std_class_object_to_array($stdclassobject)
{
$_array = is_object($stdclassobject) ? get_object_vars($stdclassobject) : $stdclassobject;
foreach ($_array as $key => $value) {
$value = (is_array($value) || is_object($value)) ? std_class_object_to_array($value) : $value;
$array[$key] = $value;
}
return $array;
}2013-2-3 17:11 Sunday
最近有用到一个组合功能,特地研究了一下,写出了如下函数
/**
* 获取一个数组的组合.
* @param type $array
* @param type $num
* @return type
*/
function mathZuhe($array,$num) {
/**
* 用于组合用的方法
* @param type $array
... 2012-2-16 16:54 Thursday
每次修改都要找,今天把位置记录下来。
文件路径是:
ckfinder\core\connector\php\php5\Utils\Misc.php中
原函数是:
public static function mbBasename($file)
{
$explode = explode('/', str_replace("\\", "/", $file...