PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of JImmy Bo   PHP ROM MUD Area Loader   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example load and display of ROM MUD area file using class
Class: PHP ROM MUD Area Loader
Load ROM MUD area map files into arrays
Author: By
Last change: use of mud to directory function added
Date: 10 years ago
Size: 1,062 bytes


Class file image Download

$RAL = new rom_mud_area_loader();



$RAL = new rom_mud_area_loader();
# you can add multiple areas at once like:
        # .. or you can add a whole directory (or multiple directories)

// $RAL->show_world(); // displays a cleanly formatted array in the browser window.
        // $RAL->world_to_file(""); // dumps the PHP array to a file
$RAL->world_to_dir('test_world/'); // much nicer
        // echo $RAL->world_to_json(); // displays a JSON version of the array in the browser window.

echo '</pre>';