實用函式 define

2021-05-01 21:12:10 字數 323 閱讀 3929

define()

此函式是定義乙個常量。

語法 :define(name,value,case_insensitive)

name(常量名):是必有的函式,用來定義常量名。

value(常量的值):是必有的函式,用來指定常量的值。

case_insensitive(指定常量的名稱是否是不區分大小寫的):可選引數。如果設定為true,則不區分字母大小寫;如果設定為false,則區分字母大小寫。預設值是:false

例子:define('path_pre',str_replace('//','/',dirname(__file__)).'/');

php中define 函式使用

php中define 函式的使用方法 define 函式用於定義乙個常量,語法 define name,value,case insensitive 例如 define greeting hello world 作用 define 函式用於定義乙個常量。語法 define name,value,ca...

實用內建函式

dir obj 顯示物件的屬性,如果沒有提供引數,則顯示全域性變數的名字 help obj 以一種整齊美觀的形式 顯示物件的文件字串,如果沒有提供任何引數,則會進入互動式幫助。int obj 將乙個物件轉換為整數 len obj 返回物件的長度 open fn,mode 以 mode r 讀,w 寫...

彙編 實用函式

目錄 1.換行 2.輸入字串 3.輸出字串 4.十進位制輸出 5.十六進製制輸出 6.氣泡排序 7.輸出空格 8.延時 9.1.backenter proc near mov dl,0ah 回車換行 mov ah,2 int 21h mov dl,0dh mov ah,2 int 21h retba...