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

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

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

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

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

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • 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
    • Showing results for:
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Accessing Arrays
    • Close
  • emilie abbott
    emilie abbott
    4,750 Points

    PHP object-oriented, $colors task 2 of 5

    Posted on Jun 3, 2023 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 on Jan 11, 2023 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 on May 27, 2020 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 on May 24, 2020 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 on Apr 21, 2019 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 on Apr 2, 2019 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 on Mar 19, 2019 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 on Nov 4, 2018 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 on Oct 3, 2018 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 on Aug 9, 2018 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 on Jun 21, 2018 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 on May 22, 2018 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 on Apr 15, 2018 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 on Mar 21, 2018 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 on Jan 15, 2018 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 on Dec 14, 2017 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 on Jul 16, 2017 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 on Mar 19, 2017 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 on Mar 9, 2017 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 on Jan 31, 2017 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 on Jan 24, 2017 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 on Jan 6, 2017 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 on Oct 27, 2016 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 on Jun 12, 2016 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.

    Treehouse

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

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.