PHP¥¹¥¯¥ê¥×¥È

PHP (Àµ¼°Ì¾¾Î PHP:Hypertext Preprocessor)

PHP¤Ï¡¢ HTML¥Õ¥¡¥¤¥ëÆâ¤Ëµ­½Ò¤¹¤ë¥¿¥¤¥×¤Î¥¹¥¯¥ê¥×¥È¸À¸ì¤Ç¤¹¡£

  • Ä̾ï¤ÎCGI¤È¤·¤Æ»ÈÍѤǤ­¤Þ¤¹¤¬¡¢PHP¥â¥¸¥å¡¼¥ë¤òApache¥µ¡¼¥Ð¡¼¤ËÁȤ߹þ¤à¤³¤È¤Ë¤è¤ê¡¢ Perl/CGI¤ÈÈæ³Ó¤·¤Æ½èÍý®Å٤ι⮲½¡¢¥µ¡¼¥Ð¡¼Éé²Ù¤ÎÄ㸺¤¬²Äǽ¤Ç¤¹¡£
  • PostgreSQL,MySQL,Oracle,Sybase¤È¤¤¤Ã¤¿³Æ¼ï¥Ç¡¼¥¿¥Ù¡¼¥¹¤È¤ÎÏ¢·È¤ËÍ¥¤ì¤Æ¤¤¤Þ¤¹¡£
  • XML,PDF,IMAP,LDAPÅù³Æ¼ïµ¡Ç½¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤ª¤ê¡¢¹­ÈϤÊWeb¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤òÍưפ˺îÀ®²Äǽ¤Ç¤¹¡£

¥¤¥ó¥¹¥È¡¼¥ë

PHP¥¤¥ó¥¹¥È¡¼¥ë

¸À¸ì¥ê¥Õ¥¡¥ì¥ó¥¹

*1

´Ø¿ô

*2

ʸ»úÎó

print()
°ú¿ô¤Îʸ»úÎó¤ò½ÐÎϤ·¤Þ¤¹¡£
strlen()
ʸ»úÎó¤Î¥Ð¥¤¥È¿ô¤òµá¤á¤ë
chop()
ʸ»úÎó¤Î¸å¤í¤Î¶õÇò¤òºï½ü¤¹¤ë
echo()
ʸ»úÎó¤ò½ÐÎϤ·¤Þ¤¹¡£
strsub()
°ú¿ô¤Îʸ»úÎó¤ÎÆÃÄê¤Î°ÌÃÖ¤«¤éʸ»ú¤ò¼è¤ê½Ð¤·¤Þ¤¹¡£
ereg_replace()
Àµµ¬É½¸½¤Ë¤è¤ëÃÖ´¹
eregi_replace()
Âçʸ»ú¾®Ê¸»ú¤ò¶èÊ̤»¤º¤ËÀµµ¬É½¸½¤Ë¤è¤ëÃÖ´¹¤ò¹Ô¤¦
str_replace()
°ú¿ô¤Ë´Þ¤Þ¤ì¤ëʸ»úÎó¤ò¡¢»ØÄꤷ¤¿Ê¸»úÎó¤ËÃÖ¤­´¹¤¨¤Þ¤¹¡£
trim()
Á°¸å¤Î¶õÇò¤òºï½ü¤¹¤ë¡£
explode()
°ú¿ô¤Îʸ»úÎó¤ò»ØÄꤷ¤¿Ê¸»ú¤Ç¶èÀÚ¤ê¤Þ¤¹¡£Ê¬³ä¤µ¤ì¤¿Ê¸»úÎó¤ÏÇÛÎó¤È¤·¤ÆÊÖ¤µ¤ì¤Þ¤¹¡£
split()
°ú¿ô¤Îʸ»úÎó¤ò»ØÄꤷ¤¿Ê¸»ú¤Ç¶èÀÚ¤ê¤Þ¤¹¡£Ê¬³ä¤µ¤ì¤¿Ê¸»úÎó¤ÏÇÛÎó¤È¤·¤ÆÊÖ¤µ¤ì¤Þ¤¹¡£
mb_convert_encoding()
ʸ»ú¥³¡¼¥É¤ÎÊÑ´¹
nl2br()
²þ¹Ôʸ»ú¤ò<br>¤ËÊÑ´¹¤¹¤ë
stripslashes()
¥Ð¥Ã¥¯¥¹¥é¥Ã¥·¥å¤¬¼è¤ê½ü¤«¤ì¤¿Ê¸»úÎó¤òÊÖ¤·¤Þ¤¹
file_get_contents()
¥Õ¥¡¥¤¥ë¤ÎÆâÍƤòÁ´¤Æʸ»úÎó¤ËÆɤ߹þ¤à
str_pad
str_pad¤Î¥Þ¥ë¥Á¥Ð¥¤¥È½èÍý
empty()
°ú¿ô¤¬¶õ¤«¤É¤¦¤«Ä´¤Ù¤ë¡£
pathinfo()
³ÈÄ¥»Ò¤ò¼èÆÀ¤¹¤ë¡£

ÇÛÎó

count()
ÇÛÎó¤ÎÍ×ÁÇ¿ô¤òµá¤á¤ë¡£
array_unshift()
ÇÛÎó¤ÎºÇ½é¤ËÊ£¿ô¤ÎÍ×ÁǤòÄɲ乤ë
array_push()
ÇÛÎó¤ÎºÇ¸å¤ËÊ£¿ô¤ÎÍ×ÁǤòÄɲ乤ë
sort()
ÇÛÎó¤ÎÍ×ÁǤò¾º½ç¤Ç¥½¡¼¥È¤¹¤ë¡£
rsort()
ÇÛÎó¤ÎÍ×ÁǤò¹ß½ç¤Ç¥½¡¼¥È¤¹¤ë¡£
print_r()
ÇÛÎó¤Î¥­¡¼¤ÈÍ×ÁÇÁ´¤Æɽ¼¨¤¹¤ë¡£
¥Ý¥¹¥È¤µ¤ì¤¿Á´¤Æ¤Î¥­¡¼¤ÈÃͤò¼èÆÀ¤¹¤ë
¥Ý¥¹¥È¤µ¤ì¤¿Á´¤Æ¤Î¥­¡¼¤ÈÃͤò¼èÆÀ¤¹¤ë
in_array()
ÇÛÎó¤Ë»ØÄê¤ÎÍ×ÁǤ¬¤¢¤ë¤«¤É¤¦¤«¤òÄ´¤Ù¤ë

ÊÑ¿ô

is_null()
ÊÑ¿ô¤¬ null ¤«¤É¤¦¤«¤òÄ´¤Ù¤ë

ÆüÉդȻþ¹ï´Ø¿ô

date()
°ú¿ô¤Ç»ØÄꤵ¤ì¤¿¥Õ¥©¡¼¥Þ¥Ã¥È¤Ç¡¢¸½ºß¤ÎÆüÉդȻþ´Ö¤òÊÖ¤·¤Þ¤¹¡£

¿ô³Ø´Ø¿ô

shell_exec()
¥·¥§¥ë¤Ë¤è¤ê¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¡¢Ê¸»úÎó¤È¤·¤Æ½ÐÎÏÁ´ÂΤòÊÖ¤¹
exec()
¥·¥§¥ë¤Ë¤è¤ê¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¡¢Ê¸»úÎó¤È¤·¤Æ½ÐÎÏÁ´ÂΤòÊÖ¤¹
number_format()
3·å¤´¤È¤Ë¿ô»ú¤Ë¥«¥ó¥Þ¶èÀÚ¤ê¤òÆþ¤ì¤ë

MySQLÍÑ´Ø¿ô

MySQL¤Ø¤ÎÀܳ¥Æ¥¹¥È
¤È¤ê¤¢¤¨¤º¡¢Àܳ¥Æ¥¹¥È¤ò¤¹¤ë¥µ¥ó¥×¥ë¥×¥í¥°¥é¥à
mysql_connect()
¥·¥§¥ë¤Ë¤è¤ê¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¡¢Ê¸»úÎó¤È¤·¤Æ½ÐÎÏÁ´ÂΤòÊÖ¤¹
exit()
¥á¥Ã¥»¡¼¥¸¤ò½ÐÎϤ·¡¢¸½ºß¤Î¥¹¥¯¥ê¥×¥È¤ò½ªÎ»¤¹¤ë
die()
exit()¤ÈƱÅù

PostgreSQLÍÑ´Ø¿ô

pg_connect()
PostgreSQL¤ØÀܳ¤¹¤ë
pg_query()
SQL¤òÁ÷¤ë
pg_num_rows()
result¥ê¥½¡¼¥¹¤Ë¤ª¤±¤ë¹Ô¿ô¤òÊÖ¤¹
pg_num_fields()
result¥ê¥½¡¼¥¹¤Ë¤ª¤±¤ë¥Õ¥£¡¼¥ë¥É¿ô¤òÊÖ¤¹¡£

²èÁü´Ø·¸

getimagesize()
²èÁü¥µ¥¤¥º¤ò¼èÆÀ¤¹¤ë¡£
ImageMagick
convert¤Ç²èÁü¤òÊÔ½¸

¤½¤Î¾

ÆüÉÕÁàºî
ÆüÉÕÁàºî¤ò´Êñ¤Ë¹Ô¤Ê¤¦¡£
CSV·Á¼°¤Ç¥À¥¦¥ó¥í¡¼¥É
CSV·Á¼°¤Ç¥À¥¦¥ó¥í¡¼¥É¤µ¤»¤ë¡£
¥Ç¥Ð¥Ã¥°
PHP¤Î¥Ç¥Ð¥Ã¥°¡¢ÇÛÎó¤Îɽ¼¨
¥¨¥é¡¼É½¼¨
¥¨¥é¡¼É½¼¨¤Ë¤Ä¤¤¤Æ
PHP¤Ç¤Î¥¢¥Ã¥×¥í¡¼¥É¥µ¥¤¥º
PHP¤Ç¤Î¥¢¥Ã¥×¥í¡¼¥É¥µ¥¤¥º¤Ë¤Ä¤¤¤Æ
PHP 5.30¤Ç¥¨¥é¡¼
PHP 5.3.0¤Ç¥¨¥é¡¼¤¬¤¤¤Ã¤Ñ¤¤¡£date´Ø¿ô¤Ç¤â¥¨¥é¡¼

¥Õ¥ì¡¼¥à¥ï¡¼¥¯

PHP¥Õ¥ì¡¼¥à¥ï¡¼¥¯
ÊØÍø¤Ê¥Õ¥ì¡¼¥à¥ï¡¼¥¯

PEAR

PEAR DB
PEAR DB¥¯¥é¥¹¤Î»È¤¤Êý
PEAR DB¥¤¥ó¥¹¥È¡¼¥ë¤Ç¤­¤Ê¤¤
pear.php.net is using a unsupported protocal - This should never happen.

*1 Perl¡¦PHP¡¦Java¤ÇHTTP´Ä¶­ÊÑ¿ô¤ò¼èÆÀ¤¹¤ëÊýË¡
*2 PHP ɸ½à´Ø¿ôµÕ°ú¤­¼­Åµ