Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialArikaturika Tumojenko
8,897 PointsWhy displaying "month long string of the day" instead for running the program?
Why when we included the exercise.php file and refreshed the page, the program didn't run in the browser? What is the meaning of "month long string of the day"?
1 Answer
Michel Ribbens
18,417 Pointscan't figure this out either... I know this text is coming from the variable within the exercise.php file:
$exercise6 = 'Month long string of the day';
but why does the index.php file runs this particular variable and attached string? I am doing this exercise on a Thursday, so it ain't day 6 (that would be Saturday). really can't come up with a logical explanation so hopefully somebody can explain to me what is happening here
jb30
44,806 Pointsjb30
44,806 PointsIn line 12 of
exercise.php
,$day = 6;
sets the day number to6
regardless of the value of$day
in line 11.