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 trial

PHP PHP Arrays and Control Structures PHP Arrays Mixing Data Types in Arrays

Darrell Conklin
seal-mask
.a{fill-rule:evenodd;}techdegree
Darrell Conklin
Python Development Techdegree Student 22,377 Points

Out of Order

This video should have preceded the quiz that came before it, just an FYI.

Ricky Johnston
Ricky Johnston
27,445 Points

Agreed! The quiz actually asks a question that isn't answered until this video.

Thought that one was tough. ;-)

100% agree, and to those who say "Google the answer", why am I even on TeamTreehouse?

It's honestly not that big of a deal. You could have easily pasted the code into your editor and used var_dump on the array and seen what was output and then used deductive reasoning to see that since the quiz question was using an associative array approach that means that the key that wasn't given a value was going to be following a regular array approach by using indexes.

This is just my opinion. And for those who are going to hassle me about pasting in the code, yes, I am aware she didn't go over it, but I took it upon myself to see what the result was and understand what was happening. It helped me learn. Following along with the instructor as well as testing out questions that I may have inside of my own text editor helps me understand. Maybe it will for you as well.

4 Answers

Yeah this just puts you off learning here. I have come over this a few times makes it really frustrating trying to pass a test without being taught the info. Please fix!

i've noticed this issue all throughout the php track. i've taken the web design and parts of the other tracks (some JavaScript and some Python) and they don't do this. i've almost quit this track several times because of this

The quizzes are set up this way so you start thinking like a developer. If you run into a problem that hasn't been previously explained in a video it's super okay to Google the information you are searching for. You'll save yourself a lot of headache and time.

Darrell Conklin
seal-mask
.a{fill-rule:evenodd;}techdegree
Darrell Conklin
Python Development Techdegree Student 22,377 Points

Googling the answer is how I ended up passing the quiz. While searching the internet for answers to your questions is a basic concept in general (developer or not), I don't feel it saved me any time or headache, simply putting it in the lesson would have made things easier with no headache in my opinion. And with laziness in the fore-front of my mind, I feel like I'm already thinking like a developer :) lol

You would be right if it was one question then yes. However all but one question was not taught yet. So all you are doing is setting a bad habit where students will google for answers now. Not a good teaching method at all.

David Olson
David Olson
8,690 Points

What was the question in the quiz?

That's like the stupid sentence my math-teacher always said, when he made a mistake: "Just wanted to test if you're awake!"

This is a plattform to learn php, html or whatever in a correct order. Let's be honest: It's a mistake! You should have learned to google years before php. ;)

Luc Belanger
Luc Belanger
1,472 Points

I actually liked the approach she took on this. It made me open up my mind and challenged me to come up with the solution myself, rather than researching it. There is no need to hold anyone's hand in this business.