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
  • Lucas Nofal
    PLUS
    Lucas Nofal
    Courses Plus Student 6,132 Points

    What does an argument "passing trough" mean?

    Posted May 15, 2017 1:58pm by Lucas Nofal
    Lucas Nofal
    Courses Plus Student 6,132 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • PHP Function Default Arguments

    1 Answer

  • A X
    A X
    12,842 Points

    Why does if($title) work instead of using a != in the following code?

    Posted January 21, 2017 11:33pm by A X
    A X
    12,842 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • PHP Function Default Arguments

    2 Answers

  • horia
    horia
    6,082 Points

    Is it correct to put variable between commas when echoing?

    Posted July 24, 2016 10:18am by horia
    horia
    6,082 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • PHP Function Default Arguments

    1 Answer

  • SAHIL SANWAL
    SAHIL SANWAL
    6,116 Points

    keeping first argumnet null and entering second argument

    Posted July 6, 2016 2:30pm by SAHIL SANWAL
    SAHIL SANWAL
    6,116 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • PHP Function Default Arguments

    1 Answer

  • Nathan Richie
    Nathan Richie
    1,428 Points

    Question about passing default values and what it says in PHP docs.

    Posted June 27, 2016 11:33pm by Nathan Richie
    Nathan Richie
    1,428 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • PHP Function Default Arguments

    1 Answer

  • Vishal Nand
    Vishal Nand
    1,777 Points

    Checking when argument is missing

    Posted March 22, 2016 1:37pm by Vishal Nand
    Vishal Nand
    1,777 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • PHP Function Default Arguments

    1 Answer

  • Janice Childers
    Janice Childers
    18,958 Points

    Screen so small, can barely see

    Posted January 5, 2016 2:49am by Janice Childers
    Janice Childers
    18,958 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • PHP Function Default Arguments

    2 Answers

  • Elena Paraschiv
    Elena Paraschiv
    9,938 Points

    What if $name=Null ?

    Posted October 8, 2015 8:03pm by Elena Paraschiv
    Elena Paraschiv
    9,938 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • PHP Function Default Arguments

    2 Answers

  • Elena Paraschiv
    Elena Paraschiv
    9,938 Points

    What if $name=Null ?

    Posted October 8, 2015 8:03pm by Elena Paraschiv
    Elena Paraschiv
    9,938 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • PHP Function Default Arguments

    1 Answer

  • cynnimon
    cynnimon
    4,001 Points

    Single quotes vs. double quotes in echo and arguments?

    Posted September 9, 2015 8:20pm by cynnimon
    cynnimon
    4,001 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • PHP Function Default Arguments

    1 Answer

  • Jaime Rios
    PLUS
    Jaime Rios
    Courses Plus Student 21,100 Points

    About the arrays.

    Posted August 26, 2015 2:31am by Jaime Rios
    Jaime Rios
    Courses Plus Student 21,100 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • PHP Function Default Arguments

    2 Answers

  • George Akinian
    George Akinian
    17,615 Points

    2:21 find discrepancy, great('Mike'); will not echo Hi,Mike. It will echo Hello,Mike. Confusing. Look at code provided

    Posted April 10, 2015 11:45pm by George Akinian
    George Akinian
    17,615 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • PHP Function Default Arguments

    2 Answers

  • Mark VonGyer
    Mark VonGyer
    21,239 Points

    Why would I use default value?

    Posted April 8, 2015 4:57pm by Mark VonGyer
    Mark VonGyer
    21,239 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • PHP Function Default Arguments

    1 Answer

  • Randall Zepeda
    Randall Zepeda
    1,979 Points

    null

    Posted March 8, 2015 10:26pm by Randall Zepeda
    Randall Zepeda
    1,979 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • PHP Function Default Arguments

    2 Answers

  • Greg Kaleka
    Greg Kaleka
    39,021 Points

    Is a default value of Null necessary?

    Posted February 19, 2015 6:47pm by Greg Kaleka
    Greg Kaleka
    39,021 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • PHP Function Default Arguments

    1 Answer

  • Daniel Thornycroft
    Daniel Thornycroft
    310 Points

    I believe there is a technically incorrect statement in this video at around 5:50

    Posted December 30, 2014 7:40am by Daniel Thornycroft
    Daniel Thornycroft
    310 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • PHP Function Default Arguments

    1 Answer

  • Ezra John Alvarez
    Ezra John Alvarez
    557 Points

    What if I dont want to provide value of the first variable?

    Posted December 23, 2014 6:40am by Ezra John Alvarez
    Ezra John Alvarez
    557 Points
    • PHP
    • PHP Functions
    • Introducing Functions
    • PHP Function Default Arguments

    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