[php functions]
1497 ワード
PHPマニュアル
文字列関連関数:
除去と塗りつぶし:trim[スペースを削除],str_pad[充填]、str_repeat, strlen;
大文字と小文字の変換:strtoupper,strtolower,ucfirst,ucwords;
フォーマット:strlen.strrev, number_format,md 5[文字列暗号化]
print_r[配列を印刷]、explode[文字列を配列に分割]
include 'xxx.php'; | require.
define[定数定義],var_dump[印刷変数]、isset[チェック変数]、setcookie[設定cookie]
ファイル関連関数
filetype, is_dir[ディレクトリかどうか]、is_fileファイルかどうか、file_exists{ファイル、ディレクトリが存在するかどうか]、file_size[ディレクトリサイズ0]
fopen[モード:r+w+a+],unlink[削除],rename,copy,fread,fclose
[HP Image processing function]|画像処理関数
int imagecolorallocate ( resource
Allocate a color for an image|画像に色を設定
resource imagecreatetruecolor ( int
imagecreatetruecolor-Create a new true color image|カラー画像を作成する
bool imagefilledrectangle ( resource
imagefilledrectangle-Draw a filled rectangle|塗りつぶした長方形を描く
array imagettftext ( resource
imagetttftext-Write text to the image using TrueType fonts|True Typeフォントで画像に字を書く
文字列関連関数:
除去と塗りつぶし:trim[スペースを削除],str_pad[充填]、str_repeat, strlen;
大文字と小文字の変換:strtoupper,strtolower,ucfirst,ucwords;
フォーマット:strlen.strrev, number_format,md 5[文字列暗号化]
print_r[配列を印刷]、explode[文字列を配列に分割]
include 'xxx.php'; | require.
define[定数定義],var_dump[印刷変数]、isset[チェック変数]、setcookie[設定cookie]
ファイル関連関数
filetype, is_dir[ディレクトリかどうか]、is_fileファイルかどうか、file_exists{ファイル、ディレクトリが存在するかどうか]、file_size[ディレクトリサイズ0]
fopen[モード:r+w+a+],unlink[削除],rename,copy,fread,fclose
[HP Image processing function]|画像処理関数
int imagecolorallocate ( resource
$image
, int $red
, int $green
, int $blue
) Allocate a color for an image|画像に色を設定
resource imagecreatetruecolor ( int
$width
, int $height
) imagecreatetruecolor-Create a new true color image|カラー画像を作成する
bool imagefilledrectangle ( resource
$image
, int $x1
, int $y1
, int $x2
, int $y2
, int $color
) imagefilledrectangle-Draw a filled rectangle|塗りつぶした長方形を描く
array imagettftext ( resource
$image
, float $size
, float $angle
, int $x
, int $y
, int $color
, string $fontfile
, string $text
) imagetttftext-Write text to the image using TrueType fonts|True Typeフォントで画像に字を書く