SectionsNested.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /*
  3. * This file is part of Mustache.php.
  4. *
  5. * (c) 2010-2017 Justin Hileman
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. class SectionsNested
  11. {
  12. public $name = 'Little Mac';
  13. public function enemies()
  14. {
  15. return array(
  16. array(
  17. 'name' => 'Von Kaiser',
  18. 'enemies' => array(
  19. array('name' => 'Super Macho Man'),
  20. array('name' => 'Piston Honda'),
  21. array('name' => 'Mr. Sandman'),
  22. ),
  23. ),
  24. array(
  25. 'name' => 'Mike Tyson',
  26. 'enemies' => array(
  27. array('name' => 'Soda Popinski'),
  28. array('name' => 'King Hippo'),
  29. array('name' => 'Great Tiger'),
  30. array('name' => 'Glass Joe'),
  31. ),
  32. ),
  33. array(
  34. 'name' => 'Don Flamenco',
  35. 'enemies' => array(
  36. array('name' => 'Bald Bull'),
  37. ),
  38. ),
  39. );
  40. }
  41. }