🤑 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
  • Malcolm Stretten
    Malcolm Stretten
    3,814 Points

    my result was not the same after commenting out

    Posted July 23, 2016 9:12am by Malcolm Stretten
    Malcolm Stretten
    3,814 Points
    • PHP
    • PHP Basics (Retired)
    • PHP Data & Structure
    • PHP Statements & Comments

    1 Answer

  • Eric C
    Eric C
    7,998 Points

    when i comment out the php variable $location = "Orlando, FL" in workspaces, the preview has Undefined Variable error

    Posted July 17, 2016 5:47am by Eric C
    Eric C
    7,998 Points
    • PHP
    • PHP Basics (Retired)
    • PHP Data & Structure
    • PHP Statements & Comments

    3 Answers

  • A X
    A X
    12,842 Points

    Hampton never explained multi-line comments in PHP, can you?

    Posted April 15, 2016 4:48am by A X
    A X
    12,842 Points
    • PHP
    • PHP Basics (Retired)
    • PHP Data & Structure
    • PHP Statements & Comments

    1 Answer

  • Scott Mowry
    Scott Mowry
    7,161 Points

    Why do I get "Notice: Undefined variable: location" on my preview page?

    Posted November 3, 2015 11:26pm by Scott Mowry
    Scott Mowry
    7,161 Points
    • PHP
    • PHP Basics (Retired)
    • PHP Data & Structure
    • PHP Statements & Comments

    3 Answers

  • Brandon Cleveland
    Brandon Cleveland
    11,134 Points

    Is there any way to bypass Workspaces' 100 maximum limit? I need to use them in order to progress in my class.

    Posted September 12, 2015 11:31pm by Brandon Cleveland
    Brandon Cleveland
    11,134 Points
    • PHP
    • PHP Basics (Retired)
    • PHP Data & Structure
    • PHP Statements & Comments

    3 Answers

  • Panagiotis Papantonopoulos
    Panagiotis Papantonopoulos
    19,347 Points

    Video quality

    Posted March 2, 2015 11:06am by Panagiotis Papantonopoulos
    Panagiotis Papantonopoulos
    19,347 Points
    • PHP
    • PHP Basics (Retired)
    • PHP Data & Structure
    • PHP Statements & Comments

    10 Answers

  • Lei Zhou
    Lei Zhou
    2,445 Points

    is there a way to download the video ?

    Posted February 20, 2015 1:26pm by Lei Zhou
    Lei Zhou
    2,445 Points
    • PHP
    • PHP Basics (Retired)
    • PHP Data & Structure
    • PHP Statements & Comments

    3 Answers

  • Gadisha Snip
    Gadisha Snip
    1,961 Points

    PHP Statements & Comments

    Posted October 15, 2014 10:01pm by Gadisha Snip
    Gadisha Snip
    1,961 Points
    • PHP
    • PHP Basics (Retired)
    • PHP Data & Structure
    • PHP Statements & Comments

    1 Answer

  • David Locke
    David Locke
    1,709 Points

    The work I did yesterday is not in my workspace?

    Posted October 3, 2014 9:09am by David Locke
    David Locke
    1,709 Points
    • PHP
    • PHP Basics (Retired)
    • PHP Data & Structure
    • PHP Statements & Comments

    0 Answers

  • Sultan Baig
    PLUS
    Sultan Baig
    Courses Plus Student 18,002 Points

    Code challenge on PHP basics

    Posted August 12, 2014 1:44am by Sultan Baig
    Sultan Baig
    Courses Plus Student 18,002 Points
    • PHP
    • PHP Basics (Retired)
    • PHP Data & Structure
    • PHP Statements & Comments

    11 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.