function _analyseResultByParameter($result, $param, $addtion = '') { if (is_array($result)) { return $result; } if ($param == 'default') { $temp = $result; } elseif (is_numeric($param)) { $result = str_replace(array(' ', '<', '>'), ' ', $result); $temp = substrs($result, $param, ''); } elseif (preg_match('/^\\d{1,3},\\d{1,3}$/', $param)) { list($width, $height) = explode(',', $param); $temp = minImage($result, $width, $height); } elseif (preg_match('/^\\w{1,4}(:|-)\\w{1,4}((:|-)\\w{1,4})?$/', $param)) { $temp = $result ? get_date($result, $param) : ''; } return $temp; }
function _analyseResultByParameter($result, $param, $addtion = '') { if ($param == 'default') { $temp = $result; } elseif (is_numeric($param)) { $temp = substrs($result, $param); } elseif (preg_match('/^\\d{1,3},\\d{1,3}$/', $param) && $addtion == 'image') { list($width, $height) = explode(',', $param); $temp = minImage($result, $width, $height); } elseif (preg_match('/^\\w{1,4}(:|-)\\w{1,4}((:|-)\\w{1,4})?$/', $param)) { $temp = get_date($result, $param); } return $temp; }