## PHP ããã®è±åº $a = 9; for ($i = 0; $i hoge /* echos hoge 3 times */ } function fuga($n) { global $a; ?>nandatte- = $a * $n ?> = $a ?> /* new line following ?> will be ignored */ } fuga(100); fuga(101); fuga(102); ?> ## ã¯ãã¼ã¸ã£ ç¡åé¢æ°ãå¤å´ã®ç°å¢ã«ããå¤æ°ãåç §ããã«ã¯ãå¼æ°ãªã¹ãã®å¾ãã« `use` ã§åç §ãããå¤æ°ãåæããã $x = "hello"; $f = function () use ($x) { ?>Watch out! $x does not have lexical scope! $x = = $x ?> }; $x = "good bye"; $f
{{#tags}}- {{label}}
{{/tags}}