🤑 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

  • 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
  • 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,507 Points

    Trouble with this if statement.

    Posted June 22, 2017 7:35pm by Chris Seals
    Chris Seals
    4,507 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.

    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.