Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

PHP PHP Basics (Retired) PHP Datatypes PHP Datatypes Challenge

Challenge Task 6 of 7 in PHP Basics is not working. Im almost 100% that I did task 6 correctly. Keep returning to task 1

Challenge Task 6 of 7 in PHP Basics is not working. Im almost 100% that I did task 6 correctly. Keeps returning to task 1. WIll not let me move forward to task 7. Please help.

index.php
<?php

//Place your code below this comment

$integer_one = 1; 
$integer_two = 2; 

$golden = 1.618;

$bool = TRUE;

$colors = array('red', 'blue', 'green')

echo $colors[1];




?>

2 Answers

Jay Padzensky
Jay Padzensky
4,719 Points

Hi Jack,

Sorry for the troubles! Are you seeing an error associated with the submission of task 6? Occassionally, incorrect (or too much 'unanticipated') code could throw a Communication Error. It might be possible to copy/paste your question verbatim into the Community search bar to see if any other threads have been created about the task in question. I hope this helps some!

Thanks, ya I think it was some communication error like you said, I closed it all down and then went back into it and it worked fine. Thanks for your help.