PHPã§ãã¯ã©ã¹ãã¼ã¹ã®ãªãã¸ã§ã¯ãæåãæ¸ãã¾ããã ãããPHPã¯åçåä»ãã§ã¯ãªãã¾ããããã¨ãããã¨ã¯ ã¨ã£ã¦ãç°¡åã«ãªãã¸ã§ã¯ãæåã使ã£ã¦å¼·åãªããã°ã©ãã³ã°ãè¡ãªãã¾ãã PHPã§ããªã¢ã¼ãã£ãºã ããªã¢ã¼ãã£ãºã ã¯ä¾¿å©ã§ããã ããã便å©ã§ãããããã°ã©ã ãè¶ ã¹ãã¼ãã«ãªãã¾ãã ããã°ã©ãã³ã°ã®çºæ³ãæ¥æ¬èªã§èãããããªçºæ³ã«ãªã£ã¦å¤§å¤èªç¶ã§ãã ãããPHPãªãããã¯ã¿ã¤ãã³ã°ã§æ¸ãã¾ãã 次ã®ã½ã¼ã¹ãè¦ã¦ãã ããã <?php class Dog{ function say(){ print 'ãã' . "\n"; } } class Cat{ function say(){ print 'ã«ãã' . "\n"; } } $animals = array(new Dog, new Cat); foreach($animals as $animal){ $anima
{{#tags}}- {{label}}
{{/tags}}