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
  • Riley Hiltz
    Riley Hiltz
    11,653 Points

    Understanding Variable Functions

    Posted June 18, 2018 2:49pm by Riley Hiltz
    Riley Hiltz
    11,653 Points
    • PHP
    • PHP Functions
    • Function Returns and More
    • PHP Variable Functions

    1 Answer

  • M Glasser
    M Glasser
    10,868 Points

    Variable functions vs. regular string variables? How to tell the difference?

    Posted October 31, 2017 7:43pm by M Glasser
    M Glasser
    10,868 Points
    • PHP
    • PHP Functions
    • Function Returns and More
    • PHP Variable Functions

    1 Answer

  • Miguel Nunez
    Miguel Nunez
    3,266 Points

    How does a Callback look like in action in codding how can I spot a callback?

    Posted September 9, 2016 9:48am by Miguel Nunez
    Miguel Nunez
    3,266 Points
    • PHP
    • PHP Functions
    • Function Returns and More
    • PHP Variable Functions

    1 Answer

  • Miguel Nunez
    Miguel Nunez
    3,266 Points

    What is a callback in php?

    Posted September 8, 2016 8:21am by Miguel Nunez
    Miguel Nunez
    3,266 Points
    • PHP
    • PHP Functions
    • Function Returns and More
    • PHP Variable Functions

    3 Answers

  • Miguel Nunez
    Miguel Nunez
    3,266 Points

    What is var in php?

    Posted September 7, 2016 9:40am by Miguel Nunez
    Miguel Nunez
    3,266 Points
    • PHP
    • PHP Functions
    • Function Returns and More
    • PHP Variable Functions

    1 Answer

  • Miguel Nunez
    Miguel Nunez
    3,266 Points

    Would you say that a php key is a synonym of php value?

    Posted September 7, 2016 9:38am by Miguel Nunez
    Miguel Nunez
    3,266 Points
    • PHP
    • PHP Functions
    • Function Returns and More
    • PHP Variable Functions

    1 Answer

  • Miguel Nunez
    Miguel Nunez
    3,266 Points

    Don't say return returns a value which is very confusing but what's the difference between an echo and a return.

    Posted September 2, 2016 9:15am by Miguel Nunez
    Miguel Nunez
    3,266 Points
    • PHP
    • PHP Functions
    • Function Returns and More
    • PHP Variable Functions

    2 Answers

  • Andy Hughes
    Andy Hughes
    10,049 Points

    Can't output the right answer from my comparison test script

    Posted March 13, 2016 7:56pm by Andy Hughes
    Andy Hughes
    10,049 Points
    • PHP
    • PHP Functions
    • Function Returns and More
    • PHP Variable Functions

    2 Answers

  • Jason S
    Jason S
    16,247 Points

    How do I set the string of $func to be the actual function name?

    Posted September 18, 2015 6:55am by Jason S
    Jason S
    16,247 Points
    • PHP
    • PHP Functions
    • Function Returns and More
    • PHP Variable Functions

    2 Answers

  • Hudson Wolfe
    Hudson Wolfe
    1,070 Points

    Why would you use $func = 'answer'; instead of $func = answer()?

    Posted September 13, 2015 3:26am by Hudson Wolfe
    Hudson Wolfe
    1,070 Points
    • PHP
    • PHP Functions
    • Function Returns and More
    • PHP Variable Functions

    3 Answers

  • Luis Alveiro Martinez Botello
    Luis Alveiro Martinez Botello
    2,726 Points

    I am running my code but does not show me anything?

    Posted June 17, 2015 2:02am by Luis Alveiro Martinez Botello
    Luis Alveiro Martinez Botello
    2,726 Points
    • PHP
    • PHP Functions
    • Function Returns and More
    • PHP Variable Functions

    2 Answers

  • William Twiner
    William Twiner
    2,605 Points

    Why a variable function?

    Posted May 15, 2015 7:14pm by William Twiner
    William Twiner
    2,605 Points
    • PHP
    • PHP Functions
    • Function Returns and More
    • PHP Variable Functions

    5 Answers

  • ammarkhan
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    ammarkhan
    Front End Web Development Techdegree Student 21,661 Points

    How did the function func() echo when there wasn't any?

    Posted April 3, 2015 1:35pm by ammarkhan
    .a{fill-rule:evenodd;}techdegree
    ammarkhan
    Front End Web Development Techdegree Student 21,661 Points
    • PHP
    • PHP Functions
    • Function Returns and More
    • PHP Variable Functions

    2 Answers

  • Jon Maldia
    Jon Maldia
    8,473 Points

    What is the practical use of using Variable Functions?

    Posted February 24, 2015 4:33am by Jon Maldia
    Jon Maldia
    8,473 Points
    • PHP
    • PHP Functions
    • Function Returns and More
    • PHP Variable Functions

    3 Answers

  • ammarkhan
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    ammarkhan
    Front End Web Development Techdegree Student 21,661 Points

    How does a function can be called without set of ()

    Posted January 28, 2015 8:00am by ammarkhan
    .a{fill-rule:evenodd;}techdegree
    ammarkhan
    Front End Web Development Techdegree Student 21,661 Points
    • PHP
    • PHP Functions
    • Function Returns and More
    • PHP Variable Functions

    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