<?php $classes = ["Pokemon", "EncounterSpace", "Inventory"]; foreach ($classes as $class) { require_once $class . ".class.php"; } $inv = new Inventory(); $inv->save(); $inv->echoAllPokemon(); ?> <a href="index.php">Return home</a> <hr> <a href="walk.php?area=forest">Or take a walk through 'The Forest'!</a>