PHPã®ã³ã¬ã¯ã·ã§ã³å¦çã©ã¤ãã©ãªUnderbar.phpã®ç´¹ä» ããã«ã¡ãã¡ãã 以åã«ä¾¿å©ãªVimã®Operatorããã¹ã¿ã¼ãããæ¸ãã¾ããemonkakã§ãã ä»åã¯ç§ãå人çã«éçºãé²ãã¦ãã¦ä»¥åã«ç¤¾å åå¼·ä¼ã§çºè¡¨ãã¾ãããPHPã®ã³ã¬ã¯ã·ã§ã³å¦çã©ã¤ãã©ãªã®Underbar.phpã®ç´¹ä»ããããã¨æãã¾ãã PHPã®arrayãªãã¨ãé¢æ°ã¯ä½¿ãåæãæªã PHPã«ã¯é åå¦çã®ããã®é¢æ°ãããããããã¾ãããarray_map()ã®å¼æ°ã®é çªãå¤ã ã£ããarrayããããããªãã¸ã§ã¯ãã§ã¯ãªãã®ã§ã¡ã½ãããã§ã¤ã³ãã§ããªãã£ãã使ãåæãè¯ãããã¾ããã $xs = range(1, 10); $twice = function($n) { return $n * 2; }; array_slice(array_map($twice, $xs), 0, 3); // [2, 4,
{{#tags}}- {{label}}
{{/tags}}