Location: PHPKode > scripts > PHP Voice > php-voice/samples/menu_mod.php
<?php

/**
 * Sample usage of the menu module
 * 
 * @author Ben Yacoub Hatem <hide@address.com>
 * $ version 1.0.0 Sun Nov 14 16:06:28 CET 2004 16:06:28 by hatem
 */

 
  include ("../vxml.class.php");
 
 $app = new gonx_vxml();

 $app->start_vxml("", "", "", "", "", "2.0");
 $app->start_catch("connection.disconnect"); $app->start_exit_c(); $app->end_catch();
 

 // Create choice menu
 $menu_items = array("Welcome"=>"#welcome",
 "Sport"=>"#sport",
 "Music"=>"#music",
 "Quit"=>"#quit"
 );
 
 $app->load("menu", $menu_items);
 
 
 $app->load("message", array("welcome","Welcome to PHP voice sample application",$_SERVER['PHP_SELF']));
 $app->load("message", array("sport","This is the sport section of PHP Voice",$_SERVER['PHP_SELF']));
 $app->load("message", array("music","This is the music section of PHP Voice",$_SERVER['PHP_SELF']));
 $app->load("message", array("quit","Thank you for your visit, bye."));
 
 
 $app->end_vxml();

 $app->generate();
?>
Return current item: PHP Voice