imagecreatetruecolor($width, $height); |
創建畫布 |
imagecolorallocate($image, 255, 255, 255); |
創建顏色 |
imagefilledrectangle($image, 1, 1, $width-2, $height-2, $white); |
填充畫布 |
print_r |
輸出數組 |
range(low,high,step) |
low 必需。規定數組的最低值。high 必需。規定數組的最高值。 |
join("",array) |
把數組元素組合為一個字符串: |
array_merge(array1,array2) |
函數把一個或多個數組合并為一個數組。 |
exit("string") |
exit() 函數輸出一條消息,并退出當前腳本。 |
strlen(string) |
strlen() 函數返回字符串的長度。 |
str_shuffle(string) |
str_shuffle() 函數隨機打亂字符串中的所有字符。 |
substr(string,start,length) |
substr() 函數返回字符串的一部分。 |
require_once 'string.func.php' |
語句在腳本執行期間包含并運行指定文件 |
count(array,mode可選); |
count() 函數返回數組中元素的數目。 |
mt_rand(min,max) |
mt_rand() 使用 Mersenne Twister 算法返回隨機整數。 |
define(name,value,case_insensitive) |
define() 函數定義一個常量。 |
dirname(FILE) |
函數返回的是腳本所在在的路徑 |
set_include_path() |
包含文件路徑 設置當前的環境變量 |
get_include_path取得當前已有的環境變量 |
get_include_path取得當前已有的環境變量 |
PATH_SEPARATOR |
路徑分隔符 |
array_keys($array) |
返回包含數組中所有鍵名的一個新數組: |
array_values() |
array_values() 函數返回一個包含給定數組中所有鍵值的數組,但不保留鍵名。 |