Skip to main content

🛍️ BLACK FRIDAY get-one-give-one sale is underway. Don't miss $50 off PLUS a free subscription to gift a friend. 🤩

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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
  • corbinb
    corbinb
    2,655 Points

    My code is not being echoed to the browse

    Posted March 23, 2019 12:25am by corbinb
    corbinb
    2,655 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • Introducing Functions

    1 Answer

  • web pad
    web pad
    4,483 Points

    When writing the function name "is mike", why do we need to put an underscore between the two words? ("is_mike")?

    Posted June 11, 2018 10:09pm by web pad
    web pad
    4,483 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • Introducing Functions

    1 Answer

  • Miguel Nunez
    Miguel Nunez
    3,266 Points

    When people try to explain what a return means in php what is it meant when they say this.

    Posted September 1, 2016 8:57am by Miguel Nunez
    Miguel Nunez
    3,266 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • Introducing Functions

    1 Answer

  • Miguel Nunez
    Miguel Nunez
    3,266 Points

    In simple terms what is a Variable Scope (global)

    Posted August 25, 2016 5:37am by Miguel Nunez
    Miguel Nunez
    3,266 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • Introducing Functions

    3 Answers

  • Stefano Salazar
    Stefano Salazar
    924 Points

    Can someone explain to me more details about ¨global¨ in php

    Posted May 24, 2016 11:57pm by Stefano Salazar
    Stefano Salazar
    924 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • Introducing Functions

    1 Answer

  • Ellen Sun
    Ellen Sun
    1,605 Points

    How come the else statement is echoed?

    Posted August 31, 2015 6:25pm by Ellen Sun
    Ellen Sun
    1,605 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • Introducing Functions

    3 Answers

  • Abe Layee
    Abe Layee
    8,378 Points

    PHP Quotation

    Posted August 10, 2015 6:52pm by Abe Layee
    Abe Layee
    8,378 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • Introducing Functions

    1 Answer

  • Øyvind-Andreas Emanuelsen
    Øyvind-Andreas Emanuelsen
    2,867 Points

    When to use a single = and when to use a ==? To me they seem used interchangeably and can't find any explanation online.

    Posted June 15, 2015 1:53pm by Øyvind-Andreas Emanuelsen
    Øyvind-Andreas Emanuelsen
    2,867 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • Introducing Functions

    1 Answer

  • MUZ140920 Kudakwashe Murungu
    MUZ140920 Kudakwashe Murungu
    6,316 Points

    Introducing Functions

    Posted June 10, 2015 9:13pm by MUZ140920 Kudakwashe Murungu
    MUZ140920 Kudakwashe Murungu
    6,316 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • Introducing Functions

    2 Answers

  • Derek Markman
    Derek Markman
    16,291 Points

    Why didn't we close our php code block?

    Posted May 31, 2015 2:01am by Derek Markman
    Derek Markman
    16,291 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • Introducing Functions

    2 Answers

  • michaeldavies3
    michaeldavies3
    23,152 Points

    What is the purpose of "global $current_user;"?

    Posted May 30, 2015 12:22pm by michaeldavies3
    michaeldavies3
    23,152 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • Introducing Functions

    3 Answers

  • Vidit Shah
    Vidit Shah
    6,037 Points

    What's wrong with my php code?

    Posted May 13, 2015 4:06pm by Vidit Shah
    Vidit Shah
    6,037 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • Introducing Functions

    1 Answer

  • Stephanie Roberts
    Stephanie Roberts
    16,832 Points

    PHP development workspace preview not working?

    Posted May 11, 2015 1:17pm by Stephanie Roberts
    Stephanie Roberts
    16,832 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • Introducing Functions

    1 Answer

  • marvelousperson206
    marvelousperson206
    9,199 Points

    Can't preview PHP?

    Posted April 15, 2015 5:23am by marvelousperson206
    marvelousperson206
    9,199 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • Introducing Functions

    2 Answers

  • Srinath Kattula
    Srinath Kattula
    1,574 Points

    echo function.

    Posted March 12, 2015 4:36am by Srinath Kattula
    Srinath Kattula
    1,574 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • Introducing Functions

    1 Answer

  • Kittikhun Subdee
    PLUS
    Kittikhun Subdee
    Courses Plus Student 45 Points

    hello

    Posted November 11, 2014 7:35am by Kittikhun Subdee
    Kittikhun Subdee
    Courses Plus Student 45 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • Introducing Functions

    4 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