Skip to main content

NOTICE: On Friday Nov 6, Workspaces will be temporarily unavailable for maintenance.

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • emilie abbott
    emilie abbott
    4,750 Points

    PHP object-oriented, $colors task 2 of 5

    Posted June 3, 2023 9:40pm by emilie abbott
    emilie abbott
    4,750 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Accessing Arrays

    3 Answers

  • Royner Lopez
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Royner Lopez
    Full Stack JavaScript Techdegree Student 3,830 Points

    solution

    Posted January 11, 2023 10:09pm by Royner Lopez
    .a{fill-rule:evenodd;}techdegree
    Royner Lopez
    Full Stack JavaScript Techdegree Student 3,830 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Accessing Arrays

    1 Answer

  • Mohamed Yousfi
    Mohamed Yousfi
    1,311 Points

    associative arrays step 5

    Posted May 27, 2020 8:01pm by Mohamed Yousfi
    Mohamed Yousfi
    1,311 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Accessing Arrays

    0 Answers

  • Brian Thomas
    Brian Thomas
    10,688 Points

    Access associative array step 5

    Posted May 24, 2020 7:27pm by Brian Thomas
    Brian Thomas
    10,688 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Accessing Arrays

    0 Answers

  • Brian Ball
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Brian Ball
    Treehouse Project Reviewer

    How to echo value in associative array?

    Posted April 21, 2019 7:40pm by Brian Ball
    .a{fill-rule:evenodd;}techdegree seal-36
    Brian Ball
    Treehouse Project Reviewer
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Accessing Arrays

    1 Answer

  • Unsubscribed User
    seal-mask
    PLUS
    .a{fill-rule:evenodd;}techdegree seal-36
    Unsubscribed User
    PHP Development Techdegree Graduate 16,121 Points

    Accessing Arrays Challenge step 4 not seeing array created in step 2.

    Posted April 2, 2019 3:24am by Unsubscribed User
    .a{fill-rule:evenodd;}techdegree seal-36
    Unsubscribed User
    PHP Development Techdegree Graduate 16,121 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Accessing Arrays

    0 Answers

  • jameso
    jameso
    8,569 Points

    Accessing arrays: failing task despite echoing correct variable.

    Posted March 19, 2019 10:33am by jameso
    jameso
    8,569 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Accessing Arrays

    1 Answer

  • evolvingdreamer
    evolvingdreamer
    247 Points

    Some unclear or incorrect instructions in challenge 4/5 of Accessing Arrays

    Posted November 4, 2018 2:16pm by evolvingdreamer
    evolvingdreamer
    247 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Accessing Arrays

    0 Answers

  • Damian Toczek
    Damian Toczek
    4,471 Points

    I don't understand why there is an error ?

    Posted October 3, 2018 12:38am by Damian Toczek
    Damian Toczek
    4,471 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Accessing Arrays

    1 Answer

  • Sören Wrede
    Sören Wrede
    376 Points

    'accessing-arrays' Challenge

    Posted August 9, 2018 7:07am by Sören Wrede
    Sören Wrede
    376 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Accessing Arrays

    1 Answer

  • James Vlok
    James Vlok
    17,059 Points

    Code Challenge: preview gives correct output but does not pass

    Posted June 21, 2018 8:06am by James Vlok
    James Vlok
    17,059 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Accessing Arrays

    2 Answers

  • Njonjo Kiroga
    PLUS
    Njonjo Kiroga
    Courses Plus Student 212 Points

    My code does not seem to be working.

    Posted May 22, 2018 2:49am by Njonjo Kiroga
    Njonjo Kiroga
    Courses Plus Student 212 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Accessing Arrays

    2 Answers

  • Joshua Mclendon
    Joshua Mclendon
    46,708 Points

    I don't understand why this challenge isn't passing....

    Posted April 15, 2018 2:45am by Joshua Mclendon
    Joshua Mclendon
    46,708 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Accessing Arrays

    1 Answer

  • Slava Narushi
    Slava Narushi
    4,646 Points

    What's wrong?

    Posted March 21, 2018 2:40pm by Slava Narushi
    Slava Narushi
    4,646 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Accessing Arrays

    1 Answer

  • Ryan Dainton
    Ryan Dainton
    17,164 Points

    Task 5 of assignment not passing

    Posted January 15, 2018 9:37pm by Ryan Dainton
    Ryan Dainton
    17,164 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Accessing Arrays

    1 Answer

  • Pieter Middeldorp
    Pieter Middeldorp
    10,460 Points

    Task 1 no longer passing. It is the same as previously passed. What am I missing?

    Posted December 14, 2017 2:04pm by Pieter Middeldorp
    Pieter Middeldorp
    10,460 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Accessing Arrays

    1 Answer

  • Corey Lyons
    Corey Lyons
    24,684 Points

    Accessing Arrays Task 4

    Posted July 16, 2017 7:24pm by Corey Lyons
    Corey Lyons
    24,684 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Accessing Arrays

    1 Answer

  • Roger Dailey
    Roger Dailey
    14,887 Points

    Do not know what I am doing wrong?

    Posted March 19, 2017 8:59pm by Roger Dailey
    Roger Dailey
    14,887 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Accessing Arrays

    1 Answer

  • Leo Koo
    Leo Koo
    5,500 Points

    Now using the $favorite_colors array, echo mike's favorite color

    Posted March 9, 2017 7:29pm by Leo Koo
    Leo Koo
    5,500 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Accessing Arrays

    2 Answers

  • Johnathon Southworth
    Johnathon Southworth
    3,417 Points

    What is happening

    Posted January 31, 2017 4:44pm by Johnathon Southworth
    Johnathon Southworth
    3,417 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Accessing Arrays

    1 Answer

  • evgenijs smelovs
    evgenijs smelovs
    1,819 Points

    can't figure out what is wrong...

    Posted January 24, 2017 1:21pm by evgenijs smelovs
    evgenijs smelovs
    1,819 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Accessing Arrays

    2 Answers

  • Joshua Hardy
    Joshua Hardy
    17,317 Points

    How do I echo the value in the associative array?

    Posted January 6, 2017 3:41am by Joshua Hardy
    Joshua Hardy
    17,317 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Accessing Arrays

    1 Answer

  • Nicholas Porter
    Nicholas Porter
    258 Points

    My answer is right and not being accepted

    Posted October 27, 2016 12:36am by Nicholas Porter
    Nicholas Porter
    258 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Accessing Arrays

    2 Answers

  • Alfredo Prince
    Alfredo Prince
    6,175 Points

    How is this possible?

    Posted June 12, 2016 12:48am by Alfredo Prince
    Alfredo Prince
    6,175 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Accessing Arrays

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord