✨ 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
    • PHP Arrays and Control Structures
    • PHP Conditionals
    • Compare
    • Close
  • Shakillia Bobo
    Shakillia Bobo
    2,671 Points

    How is '$a' equal to Treehouse?

    Posted on Jun 10, 2020 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 on May 26, 2020 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 on Sep 5, 2019 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 on Aug 8, 2019 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 on Jul 29, 2019 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 on May 11, 2018 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 on Jan 26, 2018 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 on Nov 8, 2017 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 on Aug 27, 2017 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 on Jun 22, 2017 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 on Jun 11, 2017 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 on Apr 17, 2017 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 on Mar 24, 2017 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 on Sep 6, 2016 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 on Aug 19, 2016 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 on Aug 15, 2016 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.