PHPã§ä»¥ä¸ã®ãããªã³ã¼ããæ¸ãã¦ãã°ã«æ°ä»ãããã°ããæ©ãã§ãã¾ã£ãã $var1 = ''; $var2 = 'aaa'; $hoge = $var1 || $var2; echo $hoge; // 'aaa'ãæå¾ å®éã¯ã$hogeã®å¤ã¯ï¼ã«ãªãã rubyãªãå½ç¶'aaa'ã«ãªãã Javaã®ããã«åã«å³æ ¼ãªè¨èªãªãã¾ã ãããPHPã¯'aaa'ãè¿ãã¦æ¬²ããã£ãã if ($var1) { $hoge = $var1; } elseif ($var2) { $hoge = $var2; }ããæ¸ããããªãã®ããªï¼ http://www.vim.org/scripts/script.php?script_id=1567ããrails.zipããã¦ã³ãã¼ãããã ã¤ã³ã¹ãã¼ã« $ unzip rails.zip Archive: rails.zip inflating: autol
{{#tags}}- {{label}}
{{/tags}}