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
  • Rob Salaman
    Rob Salaman
    1,915 Points

    I can't preview because the preview button doesn't work

    Posted June 3, 2015 11:11am by Rob Salaman
    Rob Salaman
    1,915 Points
    • PHP
    • Build a Simple PHP Application
    • Working With Functions
    • Introducing Functions

    1 Answer

  • Juliette Tworsey
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Juliette Tworsey
    Front End Web Development Techdegree Graduate 32,628 Points

    Stage 6- Working with functions

    Posted March 26, 2015 8:26pm by Juliette Tworsey
    .a{fill-rule:evenodd;}techdegree seal-36
    Juliette Tworsey
    Front End Web Development Techdegree Graduate 32,628 Points
    • PHP
    • Build a Simple PHP Application
    • Working With Functions
    • Introducing Functions

    1 Answer

  • Zeljko Lazic
    Zeljko Lazic
    1,980 Points

    <?php $numbers = array(1,5,8); echo "Sum is :" . array_sum($numbers); ?>

    Posted March 9, 2015 11:48am by Zeljko Lazic
    Zeljko Lazic
    1,980 Points
    • PHP
    • Build a Simple PHP Application
    • Working With Functions
    • Introducing Functions

    3 Answers

  • MUZ140045 Tafadzwa Gumunyu
    MUZ140045 Tafadzwa Gumunyu
    13,202 Points

    stage 6 challenge 1

    Posted January 19, 2015 9:57am by MUZ140045 Tafadzwa Gumunyu
    MUZ140045 Tafadzwa Gumunyu
    13,202 Points
    • PHP
    • Build a Simple PHP Application
    • Working With Functions
    • Introducing Functions

    2 Answers

  • Eric Chunn
    Eric Chunn
    6,588 Points

    array_sum confusion

    Posted December 29, 2014 11:07pm by Eric Chunn
    Eric Chunn
    6,588 Points
    • PHP
    • Build a Simple PHP Application
    • Working With Functions
    • Introducing Functions

    2 Answers

  • Beezer Lewinsky
    Beezer Lewinsky
    606 Points

    I have no idea how to use the array_sum function

    Posted November 6, 2014 11:37pm by Beezer Lewinsky
    Beezer Lewinsky
    606 Points
    • PHP
    • Build a Simple PHP Application
    • Working With Functions
    • Introducing Functions

    4 Answers

  • Fabrizio Rinaldi
    Fabrizio Rinaldi
    5,359 Points

    array_sum()

    Posted July 14, 2014 10:02pm by Fabrizio Rinaldi
    Fabrizio Rinaldi
    5,359 Points
    • PHP
    • Build a Simple PHP Application
    • Working With Functions
    • Introducing Functions

    2 Answers

  • daniwao
    daniwao
    13,125 Points

    What is wrong with this simple function?

    Posted June 23, 2014 6:27pm by daniwao
    daniwao
    13,125 Points
    • PHP
    • Build a Simple PHP Application
    • Working With Functions
    • Introducing Functions

    3 Answers

  • Chloe Conn
    Chloe Conn
    3,217 Points

    what am I doing wrong?

    Posted May 23, 2014 7:32pm by Chloe Conn
    Chloe Conn
    3,217 Points
    • PHP
    • Build a Simple PHP Application
    • Working With Functions
    • Introducing Functions

    2 Answers

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

    function quiz

    Posted April 24, 2014 7:57pm by ammarkhan
    .a{fill-rule:evenodd;}techdegree
    ammarkhan
    Front End Web Development Techdegree Student 21,661 Points
    • PHP
    • Build a Simple PHP Application
    • Working With Functions
    • Introducing Functions

    1 Answer

  • Stormy Silver
    Stormy Silver
    9,240 Points

    Help please

    Posted April 14, 2014 8:03pm by Stormy Silver
    Stormy Silver
    9,240 Points
    • PHP
    • Build a Simple PHP Application
    • Working With Functions
    • Introducing Functions

    1 Answer

  • Evan Osczepinski
    Evan Osczepinski
    5,189 Points

    array_sum function challenge

    Posted April 12, 2014 6:00pm by Evan Osczepinski
    Evan Osczepinski
    5,189 Points
    • PHP
    • Build a Simple PHP Application
    • Working With Functions
    • Introducing Functions

    4 Answers

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

    Am i doing it wrong?

    Posted April 8, 2014 2:32pm by ammarkhan
    .a{fill-rule:evenodd;}techdegree
    ammarkhan
    Front End Web Development Techdegree Student 21,661 Points
    • PHP
    • Build a Simple PHP Application
    • Working With Functions
    • Introducing Functions

    1 Answer

  • jason taylor
    jason taylor
    2,455 Points

    array_sum help

    Posted February 21, 2014 10:32am by jason taylor
    jason taylor
    2,455 Points
    • PHP
    • Build a Simple PHP Application
    • Working With Functions
    • Introducing Functions

    2 Answers

  • Ernst van Megen
    Ernst van Megen
    3,541 Points

    I'm stuck at functions

    Posted February 12, 2014 11:48am by Ernst van Megen
    Ernst van Megen
    3,541 Points
    • PHP
    • Build a Simple PHP Application
    • Working With 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