http://php.net/manual/ja/migration54.new-features.php
php5.4になって使い始めた
配列の短縮構文が追加されました。$a = [1, 2, 3, 4]; や $a = ['one' => 1, 'two' => 2, 'three' => 3, 'four' => 4]; のように使えます。
foo()[0] のように、関数の返り値を配列として扱えるようになりました。
http://php.net/manual/ja/migration54.new-features.php
php5.4になって使い始めた
配列の短縮構文が追加されました。$a = [1, 2, 3, 4]; や $a = ['one' => 1, 'two' => 2, 'three' => 3, 'four' => 4]; のように使えます。
foo()[0] のように、関数の返り値を配列として扱えるようになりました。
うお。こういうの読みたかった。 www.freia.jp
技術ブログを集めます。まずはリストを作成して。順番に見ていきます。
やってみた記事は読みたくなる techlog.voyagegroup.com
次はpythonのimport
def sub(x,y): return x - y if __name__ == "__main__": print sub(10000, 1)
import test_module a = test_module.Test() a.sayStr("Hello")
from test_module import Test a = Test() a.sayStr("Hello")
from test_module import Test as Test2 a = Test2() a.sayStr("Hello")
import test_module as test a = test.Test() a.sayStr("Hello")