Skip to content

Instantly share code, notes, and snippets.

@chrismatthieu
Created October 3, 2010 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrismatthieu/25aa2516820eb306892e to your computer and use it in GitHub Desktop.
Save chrismatthieu/25aa2516820eb306892e to your computer and use it in GitHub Desktop.
<?php
answer();
ask("What's your four or five digit pin? Press pound when finished", array(
"choices"=>"[4-5 DIGITS]",
"terminator" => "#",
"timeout" => 15.0,
"onChoice" => "choiceFCN"
)
);
function choiceFCN($event) {
say($event.value);
}
// script continues
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment