PHP関数リファレンス
- 【カテゴリ別】
- 【ABC順】
PHPではあらかじめ定義されている関数が非常にたくさんあります。たいていの処理は関数を使ってどうにかできてしまうほどです。ここではその関数を紹介していきたいと思いますが、PHPに用意されてる関数が非常にたくさんあるのでなかなか追いつかない状態です。徐々に増やしていくつもりですのでよろしくお願いします。
配列関数
array | count |
current | pos |
sizeof |
クラス/オブジェクト関数
日付・時刻関数
checkdate | date |
getdate | gettimeofday |
gmdate | gmmktime |
gmstrftime | localtime |
microtime | mktime |
strftime | strtotime |
time |
ディレクトリ関数
closedir | opendir |
エラー処理およびログ記録関数
error_reporting |
プログラム実行関数
ファイルシステム関数
diskfreespace | disk_free_space |
fclose | fgets |
file | filemtime |
filesize | file_get_contents |
flock | fopen |
fputs | fread |
fseek | ftell |
fwrite | is_dir |
is_file | is_writable |
is_writeable | readfile |
rewind | set_file_buffer |
関数処理関数
func_get_arg | func_get_args |
func_num_args |
イメージ関数
gd_info | getimagesize |
PHPオプション・情報関数
getlastmod | get_magic_quotes_gpc |
phpinfo | set_time_limit |
メール関数
数学関数
ceil | decbin |
dechex | decoct |
floor | round |
その他の関数
define |
ネットワーク関数
gethostbyaddr | gethostbyname |
setcookie |
出力制御関数
正規表現(regex)関数(POSIX拡張)
セッション処理関数
ストリーム関数
文字列関数
chop | echo |
explode | htmlspecialchars |
implode | join |
ltrim | nl2br |
printf | |
rtrim | setlocale |
sprintf | stripslashes |
strlen | substr |
trim |
Tokenizer関数
URL関数
urldecode | urlencode |