Blog Archives

‘SNAKE EYES’ [Dice Game]

'Snake Eyes' dice game in action.

A ‘Snake Eyes’ dice game: select your stake – £1, £2, £10, or £1000 – and roll the dice! Random numbers are retrieved from https://www.random.org/clients/http/.

Tagged with: ,
Posted in 'Snake Eyes' (Dice Game) [2018]

PHP Date/Time Function Quiz 2: DateTime::setISODate(); DateTime::modify(); DateTime::getOffset(); date_parse_from_format(); date_parse(); DateTime::sub(); date_sun_info(); date_sunrise(); date_sunset(); DateTime::setTime(); and DateTime::getTimestamp().

First four rows of the PHP Date/Time Function Mini-Quiz 2, sized for mobile viewing.

This post serves as a reference point for 11 PHP date/time functions: DateTime::setISODate(); DateTime::modify(); DateTime::getOffset(); date_parse_from_format(); date_parse(); DateTime::sub(); date_sun_info(); date_sunrise(); date_sunset(); DateTime::setTime(); and DateTime::getTimestamp(). Users can also click a ‘RANDOMIZE’ button, whereupon all the function descriptions, function syntaxes, and function return values are randomized. The user can then rearrange the table cells correctly (thus completing the quiz) or click an ‘AUTO COMPLETE’ button (following further optional manual randomization) and watch the computer complete the quiz itself! The computer completes the quiz at a speed that the human eye can follow, thus aiding learning.

Tagged with: , , , ,
Posted in PHP Date/Time Quizzes

PHP Date/Time Function Quiz: checkdate(); date_add(); date_create_from_format(); date_date_set(); date_default_timezone_get(); date_default_timezone_set(); date_diff(); date_format(); date_get_last_errors(); DateInterval::createFromDateString(); and DateInterval::format().

First two rows of the PHP DateTime Function Mini-Quiz 1, sized for desktop viewing.

This post serves as a reference point for 11 PHP date/time functions: checkdate(); date_add(); date_create_from_format(); date_date_set(); date_default_timezone_get(); date_default_timezone_set(); date_diff(); date_format(); date_get_last_errors(); DateInterval::createFromDateString(); and DateInterval::format(). Users can also click a ‘RANDOMIZE’ button, whereupon all the function descriptions, function syntaxes, and function return values are randomized. The user can then rearrange the table cells correctly (thus completing the quiz) or click an ‘AUTO COMPLETE’ button (following further optional manual randomization) and watch the computer complete the quiz itself! The computer completes the quiz at a speed that the human eye can follow, thus aiding learning.

Tagged with: , , , ,
Posted in PHP Date/Time Quizzes

PHP Calendar Function Quiz: jdmonthname(); jdtofrench(); jdtogregorian(); jdtojewish(); jdtojulian(); jdtounix(); jewishtojd(); juliantojd(); and unixtojd().

First two table rows pertaining to PHP Calendar Mini Quiz II, sized for Desktop viewing.

This post serves as a reference point for 9 PHP calendar functions: jdmonthname(); jdtofrench(); jdtogregorian(); jdtojewish(); jdtojulian(); jdtounix(); jewishtojd(); juliantojd(); and unixtojd(). Users can also click a ‘RANDOMIZE’ button, whereupon all the function descriptions, function syntaxes, and function return values are randomized. The user can then rearrange the table cells correctly (thus completing the quiz) or click an ‘AUTO COMPLETE’ button (following further optional manual randomization) and watch the computer complete the quiz itself! The computer completes the quiz at a speed that the human eye can follow, thus aiding learning.

Tagged with: , , , ,
Posted in PHP Calendar Quizzes

PHP Calendar Function Quiz: cal_days_in_month(); cal_from_jd(); cal_info(); cal_to_jd(); easter_date(); easter_days(); frenchtojd(); gregoriantojd(); and jddayofweek().

Table row pertaining to the PHP Calendar Mini Quiz I, sized for desktop viewing.

This post serves as a reference point for 9 PHP calendar functions: cal_days_in_month(); cal_from_jd(); cal_info(); cal_to_jd(); easter_date(); easter_days(); frenchtojd(); gregoriantojd(); and jddayofweek(). Users can also click a ‘RANDOMIZE’ button, whereupon all the function descriptions, function syntaxes, and function return values are randomized. The user can then rearrange the table cells correctly (thus completing the quiz) or click an ‘AUTO COMPLETE’ button (following further optional manual randomization) and watch the computer complete the quiz itself! The computer completes the quiz at a speed that the human eye can follow, thus aiding learning.

Tagged with: , , , ,
Posted in PHP Calendar Quizzes

PHP Quiz: All Calendar Functions

The first row of the PHP calendar function quiz, sized for desktop viewing.

This post serves as a reference point for 18 PHP calendar functions. Users can also click a ‘RANDOMIZE’ button, whereupon all the function descriptions, function syntaxes, and function return values are randomized. The user can then rearrange the table cells correctly (thus completing the quiz) or click an ‘AUTO COMPLETE’ button (following further optional manual randomization) and watch the computer complete the quiz itself! The computer completes the quiz at a speed that the human eye can follow, thus aiding learning.

Tagged with: , , , ,
Posted in PHP Calendar Quizzes

PHP Quiz: All Array Functions

Last two rows of the PHP array function quiz, sized for desktop viewing.

This post serves as a reference point for 76 PHP array functions. Users can also click a ‘RANDOMIZE’ button, whereupon all the function descriptions, function syntaxes, and function return values are randomized. The user can then rearrange the table cells correctly (thus completing the quiz) or click an ‘AUTO COMPLETE’ button (following further optional manual randomization) and watch the computer complete the quiz itself! The computer completes the quiz at a speed that the human eye can follow, thus aiding learning.

Tagged with: , , , ,
Posted in PHP Array Quizzes

PHP Array Function Quiz: reset(); rsort(); shuffle(); sort(); uasort(); uksort(); and usort().

This web page provides a reference table and a subsequent quiz to aid learning seven PHP array functions: reset(); rsort(); shuffle(); sort(); uasort(); uksort(); and usort(). The quiz involves matching the function description, function syntax, and function return value to the correct function name. Different table formats are available in order to cater for users on a desktop computer, a laptop, or a mobile phone. Users can also choose to randomize the quiz elements as they see fit before clicking an ‘AUTO COMPLETE’ button and watching the computer correctly complete the quiz!

Tagged with: , , , ,
Posted in PHP Array Quizzes

PHP Array Function Quiz: ksort(); list(); natcasesort(); natsort(); next(); prev(); and range().

This web page provides a reference table and a subsequent quiz to aid learning seven PHP array functions: ksort(); list(); natcasesort(); natsort(); next(); prev(); and range(). The quiz involves matching the function description, function syntax, and function return value to the correct function name. Different table formats are available in order to cater for users on a desktop computer, a laptop, or a mobile phone. Users can also choose to randomize the quiz elements as they see fit before clicking an ‘AUTO COMPLETE’ button and watching the computer correctly complete the quiz!

Tagged with: , , , ,
Posted in PHP Array Quizzes

PHP Array Function Quiz: current(); each(); end(); extract(); in_array(); key(); and krsort().

First two rows of the PHP mini-quiz, sized for desktop viewing.

This web page provides a reference table and a subsequent quiz to aid learning seven PHP array functions: current(); each; end(); extract(); in_array(); key(); and krsort(). The quiz involves matching the function description, function syntax, and function return value to the correct function name. Different table formats are available in order to cater for users on a desktop computer, a laptop, or a mobile phone. Users can also choose to randomize the quiz elements as they see fit before clicking an ‘AUTO COMPLETE’ button and watching the computer correctly complete the quiz!

Tagged with: , , , ,
Posted in PHP Array Quizzes