hogehoge $foo = new Bar; echo $foo->name(); <?php $foo = new Bar; echo $foo->name(); $foo = new Bar; echo $foo->name();