+ 7
[Solved] PHP function not working please help
This code show error undefined function in SoloLearn Code Playground $d=cal_days_in_month(CAL_GREGORIAN,2,1965); echo "There was $d days in February 1965.\n"; $d=cal_days_in_month(CAL_GREGORIAN,2,2004); echo "There was $d days in February 2004.";
7 ответов
+ 2
Looper,
Maybe it is best to confirm this to SoloLearn team instead (by sending an e-mail to info@sololearn.com). Idk for sure whether or not calendar was configured (enabled) in SoloLearn.
+ 5
Recent research lead me to conclude that calendar is not by default enabled except for the Windows distribution.
https://www.php.net/manual/en/calendar.installation.php
https://serverfault.com/questions/991978/install-php-calendar-extention
https://unix.stackexchange.com/questions/115320/php-enable-calendar-shared
https://unix.stackexchange.com/questions/508779/install-php-extension-if-php-is-already-installed
+ 4
Ipang
work in my localhost and my hosted server but not run in SoloLearn Code Playground
+ 3
Ipang Thanks Man ☺
+ 2
Anytime bro! 👌
0
okok
0
mayatompai@gmail.com