✨ 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 Functions
    • Introducing Functions
    • PHP Function Default Arguments
    • Close
  • Lucas Nofal
    PLUS
    Lucas Nofal
    Courses Plus Student 6,132 Points

    What does an argument "passing trough" mean?

    Posted on May 15, 2017 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 on Jan 21, 2017 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 on Jul 24, 2016 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 on Jul 6, 2016 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 on Jun 27, 2016 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 on Mar 22, 2016 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 on Jan 5, 2016 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 on Oct 8, 2015 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 on Oct 8, 2015 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 on Sep 9, 2015 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 on Aug 26, 2015 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 on Apr 10, 2015 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 on Apr 8, 2015 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 on Mar 8, 2015 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 on Feb 19, 2015 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 on Dec 30, 2014 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 on Dec 23, 2014 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.

    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.