ȥå   Խ ʬ Хåå ź ʣ ̾ѹ   ñ측 ǽ   إ   ǽRSS

PHP ѹ

Top / PHP

* PHP: Hypertext Preprocessor [#k50e5340]
#ls2

**javaȻƤƴְ㤤䤹 [#f929f503]

***ʸϢˤϡ.(ɥå)Ѥ롣 [#tc054e07]

***ʸϤ"פȡ'פռƻȤʬ롣 [#jdd7a028]

***+פˤϢϡͱ黻Ȥʤ롣 [#dc84c057]
㤨С$a = "abc" + 5;פξ硢"abc"ϿͤǤʤΤǣȽǤ졢$aͤϣȤʤ롣

***ͤ껻Ƥ⡢ڤΤƤ줺˾Ȥʤ롣 [#ze849571]
㤨С5/3פͤϡ1.66666666667פȤʤ롣

***defineؿѤ롣 [#r50999f9]
~
    define(FOO, 123);

***饹constɤѤ롣 [#p913822b]
~
    class Foo 
    {
        public const FOO = 123;
    }
    print("FOO: ".Foo::FOO);

***ŪѿŪ᥽åɤθƤӽФˤϡ::פѤ롣 [#f6ee0b98]
~
    class Foo 
    {
        public static $foo = "abc";
        public static function funcFoo()
        {
            print("foo!");
        }
    }
    print(Foo::$foo);
    Foo::funcFoo();

***ХѿȤ硢globalפεҤɬפȤʤ롣 [#o1782220]
~
    function foo()
    {
        global $globalVar;
        $globalVar = "";
    }

***֥ȤPHP4PHP5ǻͤ㤦 [#d866785c]
PHP5javaƱϤǤ~
Ϥˤ硢$objectA = clone $objectB;פȤޤ~
PHP5ϤǤ~
Ϥˤ硢$objectA = &$objectB;פȤޤ~
~
͡PHPѿ󰷤ˤĤƤϼεʬ䤹äǤ~
[[Ϥ-PHPѿ(1)-ȤϤΤΤ>http://www.cpa-lab.com/tech/032]]



***ҤդʤѿϡpublicȤʤ롣 [#d74bed5f]
PHP5Ǥϥѿ˥public, protected, privateѤǤޤҤդʤ硢ӡvarղä硢public줿Τȸʤޤ





**ʵǽ [#x2d4fc7e]

***`(Хå)Ǥä printȡޥɼ¹Է̤ϤǤ롣 [#gd17549f]
    $cmd = `dir`;~
    print("<pre>".$cmd."<pre>");

***̥եPHPץȤɤ߹롣 [#md699560]
|ؿ̾|ư|h
|require|꤬ȯ硢|
|include|꤬ȯ硢ٹФơ³|
|require_once|ʤɤ߹requireؿ|
|include_once|ʤɤ߹includeؿ|

~
 require(dirname(__FILE__) . "/../foo/foo.php");
 // ХѥϤΤ褦˽񤭤ޤ



* [#r7461658]
-[[ޤǽ롪ФȤʡ֥ץץץޤȤ>http://commte.net/blog/archives/3459]]
-[[PHPؽΥᡧ1DreamweaverPHP | Adobe Developer Center>http://www.adobe.com/jp/devnet/dreamweaver/articles/howtolearn_php_01.html?sdid=IZXVD]]
-[[PHPٶϤޤޤ 饤ɥ硼 | ҥɥХ ë ʹ>http://www.slideshare.net/yujiotani16/php-15973078]] ... ٶλPHPˤ顢Υ饤֥ޤʬ䤹⤵Ƥޤ
-[[[ITpro]PHP Tips 82. ޥɤȤäƥԡɥå >http://itpro.nikkeibp.co.jp/article/COLUMN/20080417/299352/]] PHPLinuxޥɤ¹ԤƥϤ륵ץ
-[[˺äݤ󥸥˥PHPե>http://www.php-ref.com/]]
-http://www.php.net/
-http://jp2.php.net/ (ܤΥߥ顼)
-[[PHP桼 (Japan PHP User Group)>http://www.php.gr.jp/]]
-[[[yohgaki's wiki]PHP/tips/侩php.ini>http://wiki.ohgaki.net/index.php?cmd=read&page=PHP%2Ftips%2F%E6%8E%A8%E5%A5%A8php.ini%E8%A8%AD%E5%AE%9A]]
-[[PHP::HaruǴñPDFĢɼ | CodeZine>http://codezine.jp/article/detail/7218]]
-[[PHP塼ȥꥢ򳫺Ťޤ | Engine Yard Blog JP>http://www.engineyard.co.jp/blog/2013/modern-php-tutorial/]]