Created
February 14, 2010 22:13
-
-
Save mheadd/304300 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include('my/local/directory/php-lib/init.php'); | |
function setMessageBlock($id, $logtext, $prompttext) { | |
$log = <log>*** {$logtext} ***</log>; | |
$prompt = <prompt>{$prompttext}</prompt>; | |
return <block name={$id}>{$log}{$prompt}</block>; | |
} | |
echo setMessageBlock("B_1", "XHP for VoiceXML is fun.", "Hello world!"); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<block name="B_1"> | |
<log>*** XHP for VoiceXML is fun! ***</log> | |
<prompt>Hello world!</prompt> | |
</block> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment