
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/.
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/.
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()
.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.
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()
.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.