+ 2

Please help me

please help me for my code "trouver date naissance" on sololearn. i work on wamp but not on sololearn. the bug is the switch

12th Aug 2017, 12:52 PM
Jonathan Darcey
Jonathan Darcey - avatar
3 Antworten
+ 4
The bug is because you made some small mistake on the statements. ...but now it's fixed, here. https://code.sololearn.com/wYzcVYuz1saB/?ref=app
12th Aug 2017, 1:07 PM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 4
The main reason why it did not work was because you wrote: case 01 etc.. case 02 etc.. instead of case 1... case 2... PHP cannot rescue case statements like it does to ordinary $variables.
12th Aug 2017, 1:20 PM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 1
yes thanks for your answer
12th Aug 2017, 1:21 PM
Jonathan Darcey
Jonathan Darcey - avatar