Login | Register | FAQ
Anonymous

Functions Lesson 9 PHP

+ Post a reply

2 posts Page 1 of 1


Functions Lesson 9 PHP

by Devantlefleuve » Thu Oct 01, 2015 1:10 pm

Hi, and firstly : Very Nice job. That's a thrue pleasure to learn PHP here. :-)

Just a remark about exemple code function EnglishDateTime,

I think there is missing a "", before Monday in the definition of $arrDay, With the provide code we get the tomorrow name of day, maybe it should be :

$arrDay = array("","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday");

Thanks for your job (and sorry for my bad english)
User avatar

Devantlefleuve

  • Posts: 1
  • Joined: Thu Oct 01, 2015 12:40 pm

Re: Functions Lesson 9 PHP

by nanoverso » Sat Oct 03, 2015 3:50 pm

Particularly I don't like this empty array member approach, think some index shift would be more logic.
User avatar

nanoverso

  • Posts: 248
  • Joined: Sat May 10, 2014 12:08 am
  • Location: Brazil
--
Mario blog (Portuguese): http://jogos-do-mario.nanoverso.com


+ Post a reply

Page 1 of 1