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 trialShane Smith
7,206 Pointscreate an empty array named $colors
this is how i typed it and not passing me and help is not coming up screen darkens and help box does not appear
$colors = array( );
2 Answers
Jason Anders
Treehouse Moderator 145,860 PointsHey Shane,
I've been noticing an issue with the help box. Maybe send an email to help@teamtreehouse.com with a description of the problem.
As for your code, it looks correct, but without seeing the challenge/quiz it's tougher to trouble shoot. If you can't get the "get help" to work, just copy the url from the quiz and paste it here in a comment and I will check it out for you.
:)
Björn Norén
9,569 PointsHi! I tried the same code to that question and can't get it right either..
https://teamtreehouse.com/library/php-basics/php-datatypes/php-datatypes-challenge
The question is: "Create An Empty Array Named $colors.". That should be $colors = array(); ?
Jason Anders
Treehouse Moderator 145,860 PointsHey Björn Norén
You're close. To create an empty array in PHP, the code checker is looking for:
$colors = [];
Keep Coding! :)
Joe Doyle
386 PointsJoe Doyle
386 PointsI'v tried all these and none work...
$colors = array (); $colors = array []; $colors = [];
??????