PHP
Last-modified: 2018-11-14 (¿å) 15:23:56 (2186d)
Top / PHP
PHP: Hypertext Preprocessor †
- PHP/API
- PHP/FuelPHP
- PHP/MySQL
- PHP/PEAR
- PHP/PEAR/ADOdb
- PHP/Php Framework
- PHP/Smarty
- PHP/Smarty/¥µ¥ó¥×¥ë
- PHP/SQLite
- PHP/¥¯¥é¥¤¥¢¥ó¥È¦¤Î¥Ð¥¤¥Ê¥ê¥Ç¡¼¥¿¤òPHP¤Ç¼èÆÀ¤¹¤ëÊýË¡
- PHP/¥³¥Þ¥ó¥É¥é¥¤¥ó
- PHP/¥µ¥ó¥×¥ë
- PHP/¥µ¥ó¥×¥ë/File Uploader
- PHP/¥µ¥ó¥×¥ë/¥¢¥¯¥»¥¹¥í¥°
- PHP/¥µ¥ó¥×¥ë/²èÁü½ÐÎÏ
- PHP/¥Ç¥Ð¥Ã¥°
- PHP/¥Ö¥é¥¦¥¶¤Çᤤ¤Æ¥µ¡¼¥Ð¾å¤Ç¥³¥Þ¥ó¥É¼Â¹Ô¤¹¤ëÊýË¡
- PHP/¥é¥¤¥Ö¥é¥ê
- PHP/¥ê¥ó¥¯
- PHP/»ñÎÁ
- PHP/Æü»þ
- PHP/ÈóƱ´ü½èÍý¡Ê¥Þ¥ë¥Á¥¹¥ì¥Ã¥É½èÍý¡¢¥Ð¥Ã¥¯¥°¥é¥¦¥ó¥É½èÍý¡Ë
- PHP/ʸ»ú¥³¡¼¥É
- PHP/ʸˡ
java¤È»÷¤Æ¤¤¤Æ´Ö°ã¤¤¤ä¤¹¤¤ÅÀ †
ʸ»úÎó¤ÎÏ¢·ë¤Ë¤Ï¡Ö.¡×(¥É¥Ã¥È)¤òÍѤ¤¤ë¡£ †
ʸ»úÎó¤ò°Ï¤¦»þ¡¢¡Ö"¡×¤È¡Ö'¡×¤ò°Õ¼±¤·¤Æ»È¤¤Ê¬¤±¤ë¡£ †
¡Ö+¡×¤Ë¤è¤ëÏ¢·ë¤Ï¡¢¿ôÃͱ黻¤È¤Ê¤ë¡£ †
Î㤨¤Ð¡Ö$a = "abc" + 5;¡×¤Î¾ì¹ç¡¢"abc"¤Ï¿ôÃͤǤʤ¤¤Î¤Ç£°¤ÈȽÃǤµ¤ì¡¢$a¤ÎÃͤϣµ¤È¤Ê¤ë¡£
À°¿ôÃͤò³ä¤ê»»¤·¤Æ¤â¡¢ÀÚ¤ê¼Î¤Æ¤é¤ì¤º¤Ë¾¯¿ô¤È¤Ê¤ë¡£ †
Î㤨¤Ð¡Ö5/3¡×¤ÎÃͤϡÖ1.66666666667¡×¤È¤Ê¤ë¡£
Äê¿ô¤ÎÄêµÁ¤Ïdefine´Ø¿ô¤òÍѤ¤¤ë¡£ †
»ÈÍÑÎã
define(FOO, 123);
¥¯¥é¥¹ÆâÄê¿ô¤ÎÄêµÁ¤Ïconst¥¡¼¥ï¡¼¥É¤òÍѤ¤¤ë¡£ †
»ÈÍÑÎã
class Foo { public const FOO = 123; } print("FOO: ".Foo::FOO);
ÀÅŪÊÑ¿ô¡¢ÀÅŪ¥á¥½¥Ã¥É¤Î¸Æ¤Ó½Ð¤·¤Ë¤Ï¡Ö::¡×¤òÍѤ¤¤ë¡£ †
»ÈÍÑÎã
class Foo { public static $foo = "abc"; public static function funcFoo() { print("foo!"); } } print(Foo::$foo); Foo::funcFoo();
¥°¥í¡¼¥Ð¥ëÊÑ¿ô¤ò»È¤¦¾ì¹ç¡¢¡Öglobal¡×¤Îµ½Ò¤¬É¬ÍפȤʤ롣 †
»ÈÍÑÎã
function foo() { global $globalVar; $globalVar = ""; }
¥ª¥Ö¥¸¥§¥¯¥È¤ÎÂåÆþ¤ÇPHP4¤ÈPHP5¤Ç»ÅÍͤ¬°ã¤¦¡£ †
PHP5¤Ïjava¤ÈƱ¤¸»²¾ÈÅϤ·¤Ç¤¹¡£
ÃÍÅϤ·¤Ë¤¹¤ë¾ì¹ç¡¢¡Ö$objectA = clone $objectB;¡×¤È¤·¤Þ¤¹¡£
PHP5¤ÏÃÍÅϤ·¤Ç¤¹¡£
»²¾ÈÅϤ·¤Ë¤¹¤ë¾ì¹ç¡¢¡Ö$objectA = &$objectB;¡×¤È¤·¤Þ¤¹¡£
»²¹Í¡§PHPÆâÉô¤ÎÊÑ¿ô¡¦ÇÛÎó°·¤¤¤Ë¤Ä¤¤¤Æ¤Ï¼¡¤Îµ»ö¤¬Ê¬¤«¤ê¤ä¤¹¤«¤Ã¤¿¤Ç¤¹¡£
¤Ï¤¸¤á¤Ë-PHPÊÑ¿ô´ÉÍý²òÀâ(1)-»²¾È¤ÈÃÍÅϤ·¤ÎÌÀ³Î¤ÊÍý²ò¤Î¤¿¤á¤Ë
¥¢¥¯¥»¥¹½¤¾þ»Ò¤ÎÉÕ¤«¤Ê¤¤¥á¥ó¥ÐÊÑ¿ô¤Ï¡¢public¤È¤Ê¤ë¡£ †
PHP5¤Ç¤Ï¥á¥ó¥ÐÊÑ¿ô¤Ë¥¢¥¯¥»¥¹½¤¾þ»Òpublic, protected, private¤ò»ÈÍѤǤ¤Þ¤¹¡£¤¿¤À¤·¡¢½¤¾þ»Ò¤òÉÕ¤±¤Ê¤¤¾ì¹ç¡¢¤ª¤è¤Ó¡¢var¤òÉղä·¤¿¾ì¹ç¡¢public¤¬Àë¸À¤µ¤ì¤¿¤â¤Î¤È¸«¤Ê¤µ¤ì¤Þ¤¹¡£
ÊØÍø¤Êµ¡Ç½ †
¡Ö`¡×(¥Ð¥Ã¥¯¥¯¥©¡¼¥È)¤Ç¤¯¤¯¤Ã¤Æ print¤¹¤ë¤È¡¢¥³¥Þ¥ó¥É¼Â¹Ô·ë²Ì¤ò½ÐÎϤǤ¤ë¡£ †
$cmd = `dir`;~ print("<pre>".$cmd."<pre>");
ÊÌ¥Õ¥¡¥¤¥ë¤ÎPHP¥¹¥¯¥ê¥×¥È¤òÆɤ߹þ¤á¤ë¡£ †
´Ø¿ô̾ | Æ°ºî |
require | ÌäÂ꤬ȯÀ¸¤·¤¿¾ì¹ç¡¢½èÍý¤òÃæ»ß |
include | ÌäÂ꤬ȯÀ¸¤·¤¿¾ì¹ç¡¢·Ù¹ð¤ò½Ð¤·¤Æ¡¢½èÍý¤ò·Ñ³ |
require_once | £±ÃʤÀ¤±Æɤ߹þ¤àrequire´Ø¿ô |
include_once | £±ÃʤÀ¤±Æɤ߹þ¤àinclude´Ø¿ô |
»ÈÍÑÎã
require(dirname(__FILE__) . "/../foo/foo.php"); // ¢¬ÁêÂХѥ¹¤Ï¤³¤Î¤è¤¦¤Ë½ñ¤¤Þ¤¹
¥ê¥ó¥¯ †
- ¤³¤³¤Þ¤Ç½ÐÍè¤ë¡ª³Ð¤¨¤È¤¯¤ÈÊØÍø¤Ê¡Ö¥×¥í¥°¥é¥à¡×¥µ¥ó¥×¥ë¤Þ¤È¤á
- PHP³Ø½¬¤Î¥¹¥¹¥á¡§Âè1²ó¡¡Dreamweaver¤ÇPHP | Adobe Developer Center
- PHPÊÙ¶¯²ñ»Ï¤Þ¤ê¤Þ¤¹´ðÁÃÊÔ ¥¹¥é¥¤¥É¥·¥ç¡¼ | ³ô¼°²ñ¼Ò¥·¡¼¥¨¡¼¡¦¥¢¥É¥Ð¥ó¥¹ Âçë Í´»Ê ... ¼ÒÆâÊÙ¶¯²ñ¤Î»ñÎÁ¡£PHP¤ÎÎò»Ë¤«¤é¡¢¥ª¥¹¥¹¥á¤Î¥é¥¤¥Ö¥é¥ê¤Þ¤Çʬ¤«¤ê¤ä¤¹¤¯²òÀ⤵¤ì¤Æ¤Þ¤¹¡£
- [ITpro]PHP Tips 82. ¥³¥Þ¥ó¥É¤ò»È¤Ã¤Æ¥¹¥Ô¡¼¥É¥¢¥Ã¥× PHP¤ÇLinux¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¥í¥°²òÀϤ¹¤ë¥µ¥ó¥×¥ë
- ˺¤ì¤Ã¤Ý¤¤¥¨¥ó¥¸¥Ë¥¢¤ÎPHP¥ê¥Õ¥¡¥ì¥ó¥¹
- http://www.php.net/
- http://jp2.php.net/ (ÆüËܤΥߥ顼¥µ¥¤¥È)
- ÆüËÜPHP¥æ¡¼¥¶¡¼²ñ (Japan PHP User Group)
- [yohgaki's wiki]PHP/tips/¿ä¾©php.iniÀßÄê
- PHP::Haru¤Ç´Êñ¤ÊPDFĢɼ¤òºîÀ®¤¹¤ë | CodeZine
- ¥â¥À¥óPHP¥Á¥å¡¼¥È¥ê¥¢¥ë¤ò³«ºÅ¤·¤Þ¤·¤¿ | Engine Yard Blog JP