Asf_Util

(Asf >= 2.1.5)

Introduction

This is a common function library. And it is very practical.

在开启命名空间情况下(asf.use_namespace=1)类名为 Asf\Util

Class synopsis

<?php
final class Asf_Util
{
    public static string ip(void)
    public static string bytes2string(int $size [, bool $space = 1])
    public static string guid(void)
    public static mixed atrim(mixed $data)
    public static mixed filterXss(mixed $data)
    public static string cpass(string $data)
    public static bool iniSets(array $ini)
    public static bool isEmail(string $email)
    public static string fileExt(string $filename)
    public static string getUrl(string $url [, array $opts = array()])
    public static string postUrl(string $url [, array $data = array() [, array $opts = array()]])
}