883Chapter 46A Trivia Game$return_string = _distractorString( $this->_game->getCurrentQuestion()) . (Web hosting services)
883Chapter 46A Trivia Game$return_string = <<$title
(How sure are you?) . $this->_game->getCurrentQuestionText() .
. ); } private function _distractorString ($question) { // creates the actual HTML for presentation of // radio-button alternatives for guesses. // Assumes that the array representing the// actual alternatives has been calculated in// advance, retrievable from the question using// getDistractorArray$distractor_array = $question->getDistractorArray(); $distractor_string = ; $distractor_string .= At least Not more than ; $count = 1; // 1-based labels are preferable, // so we can just use if ($label) … $total = count($distractor_array); foreach ($distractor_array as $distractor) { $lower_selected = ($count == 1) ? CHECKED : ; $upper_selected = ($count == $total) ? CHECKED : ; $formatted_distractor = ($distractor >= 10000) ? number_format($distractor) : $distractor; $distractor_string .= $formatted_distractor n . Continued52
We recommend cheap and reliable webhost to host and run your web applications: Coldfusion Web Hosting services.
Leave a Reply