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
  • Shakillia Bobo
    Shakillia Bobo
    2,671 Points

    How is '$a' equal to Treehouse?

    Posted June 10, 2020 2:10pm by Shakillia Bobo
    Shakillia Bobo
    2,671 Points
    • PHP
    • PHP Arrays and Control Structures
    • PHP Conditionals
    • Compare

    2 Answers

  • Katie Taira
    Katie Taira
    2,836 Points

    I don't understand this conditional

    Posted May 26, 2020 4:24am by Katie Taira
    Katie Taira
    2,836 Points
    • PHP
    • PHP Arrays and Control Structures
    • PHP Conditionals
    • Compare

    1 Answer

  • Ray Thomas
    Ray Thomas
    12,478 Points

    uhhhh you sure there?

    Posted September 5, 2019 5:56pm by Ray Thomas
    Ray Thomas
    12,478 Points
    • PHP
    • PHP Arrays and Control Structures
    • PHP Conditionals
    • Compare

    1 Answer

  • Peninah Adler
    Peninah Adler
    3,843 Points

    Quiz result said that a variable was assigned, not compared -- trying to understand.

    Posted August 8, 2019 2:15pm by Peninah Adler
    Peninah Adler
    3,843 Points
    • PHP
    • PHP Arrays and Control Structures
    • PHP Conditionals
    • Compare

    3 Answers

  • Garrett Peters
    Garrett Peters
    6,039 Points

    Is there an else missing in this quiz question?

    Posted July 29, 2019 10:13pm by Garrett Peters
    Garrett Peters
    6,039 Points
    • PHP
    • PHP Arrays and Control Structures
    • PHP Conditionals
    • Compare

    2 Answers

  • Peter Buckwalter
    Peter Buckwalter
    6,846 Points

    I don't understand why Hello "Alana, welcome to tree house" is the correct answer? $a = "Alana" not Treehouse.

    Posted May 11, 2018 2:09pm by Peter Buckwalter
    Peter Buckwalter
    6,846 Points
    • PHP
    • PHP Arrays and Control Structures
    • PHP Conditionals
    • Compare

    1 Answer

  • Thomas Minnefor
    Thomas Minnefor
    7,952 Points

    quiz question

    Posted January 26, 2018 3:36am by Thomas Minnefor
    Thomas Minnefor
    7,952 Points
    • PHP
    • PHP Arrays and Control Structures
    • PHP Conditionals
    • Compare

    1 Answer

  • Teacher Russell
    Teacher Russell
    16,873 Points

    php arrays and control structure quiz question 1 of 5

    Posted November 8, 2017 1:27am by Teacher Russell
    Teacher Russell
    16,873 Points
    • PHP
    • PHP Arrays and Control Structures
    • PHP Conditionals
    • Compare

    1 Answer

  • Francois-Victor LOUVEL
    Francois-Victor LOUVEL
    1,405 Points

    Would'nt "if ($a = "Treehouse") {}" return an error ?

    Posted August 27, 2017 9:45am by Francois-Victor LOUVEL
    Francois-Victor LOUVEL
    1,405 Points
    • PHP
    • PHP Arrays and Control Structures
    • PHP Conditionals
    • Compare

    1 Answer

  • Chris Seals
    Chris Seals
    4,516 Points

    Trouble with this if statement.

    Posted June 22, 2017 7:35pm by Chris Seals
    Chris Seals
    4,516 Points
    • PHP
    • PHP Arrays and Control Structures
    • PHP Conditionals
    • Compare

    1 Answer

  • Kat Cuccia
    Kat Cuccia
    786 Points

    This is not an if-else statement, so it should display what the final echo says, but it said that was incorrect?

    Posted June 11, 2017 12:46am by Kat Cuccia
    Kat Cuccia
    786 Points
    • PHP
    • PHP Arrays and Control Structures
    • PHP Conditionals
    • Compare

    1 Answer

  • omer cohen
    omer cohen
    2,549 Points

    how can i check what is the right answer ?

    Posted April 17, 2017 7:05pm by omer cohen
    omer cohen
    2,549 Points
    • PHP
    • PHP Arrays and Control Structures
    • PHP Conditionals
    • Compare

    2 Answers

  • Adrian Tanta
    Adrian Tanta
    467 Points

    hello please check this quiz the question number one is not correct in my opionion, D is the correct answer.

    Posted March 24, 2017 5:35pm by Adrian Tanta
    Adrian Tanta
    467 Points
    • PHP
    • PHP Arrays and Control Structures
    • PHP Conditionals
    • Compare

    1 Answer

  • Holly Pepper
    Holly Pepper
    7,551 Points

    What will be displayed in a browser when the following PHP code is executed: - think a answer is wrong

    Posted September 6, 2016 6:44am by Holly Pepper
    Holly Pepper
    7,551 Points
    • PHP
    • PHP Arrays and Control Structures
    • PHP Conditionals
    • Compare

    8 Answers

  • David Granados Hernandez
    David Granados Hernandez
    997 Points

    Why there is an assigment in the "if" condition?

    Posted August 19, 2016 5:15pm by David Granados Hernandez
    David Granados Hernandez
    997 Points
    • PHP
    • PHP Arrays and Control Structures
    • PHP Conditionals
    • Compare

    0 Answers

  • Aaron Coursolle
    Aaron Coursolle
    18,014 Points

    The value "Treehouse" is ASSIGNED...

    Posted August 15, 2016 4:44pm by Aaron Coursolle
    Aaron Coursolle
    18,014 Points
    • PHP
    • PHP Arrays and Control Structures
    • PHP Conditionals
    • Compare

    2 Answers

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