저 혼자 작성한 함수들입니다.
PHP를 배우신 분에게 익숙하게 만든 함수예요
http://kr.php.net 의 메뉴얼과 같은 방식이지만 델파이 특성으로 가끔 다른것도 있습니다.
거의 문자열 관련 함수들이고 앞에 php_ 를 붙이면 됩니다.
지원함수 목록
Const
PHP_RAND_MAX=2147483647;
function php_basename(path:String; suffix:String=''):String;
function php_copy(source:String; dest:String):Boolean;
function php_date(format:String;timestamp:Integer=0):String;
function php_dirname(path : String):String;
function php_exec(command:String):String;
function php_explode(Const separator, str:String):TStringList;overload;
procedure php_explode(Const separator, str:String;var Data:TStringList);overload;
function php_file_exists(filename:String):Boolean;
function php_floor(value : Extended):Integer;
function php_filesize(filename:String):Int64;
function php_implode(glue:String;pieces:TStrings):String;
function php_intval(str:String):Integer;
function php_is_dir(filename:String):Boolean;
function php_join(glue:String;pieces:TStrings):String;
function php_mkdir(pathname:String;mode:Integer=0):Boolean;
function php_md5(str:String;raw_output:Boolean=False):String;
function php_rand(Min:Integer=0;Max:Integer=0):Integer;
function php_round(val: Extended; precision:Integer = 0):Integer;
function php_server(name:String):String;
function php_strlen(str:String):Integer;
function php_strpos(haystack : String;needle : string;offset:Integer=0):Integer;
function php_strrchr(haystack:String;needle:String):String;
function php_strrev(Const str:String):String;
function php_strrpos(haystack:String;needle:String;offset:Integer=0):Integer;
function php_strtolower(str:String):String;
function php_strstr(haystack, needle:String):String;
function php_str_replace(Const search, replace, subject:string):string;
function php_substr(str : string;start:Integer;plength:Integer=0):String;
function php_time():Integer;
function php_trim (str:String):String;
function php_urldecode(str:String):String;
function php_urlencode(str:String):String;
function php_utf8_decode(data:String):String;
function php_utf8_encode(data:String):String;
function php_unlink(filename:String):Boolean;
function php_ord(str:String):Integer;
function php_pow(base, exp:Integer):Integer;
function php_htmlspecialchars(str:String;quote_style:Integer=0;charset:String=''):String;
댓글을 달아 주세요