Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
In most cases we will want to do more than just echo a value inside of our functions. In order to do that we will need to have the function 'return' a value. This way we are able to store data from a function call to any type of value variable.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Ker Sing Tan
10,573 PointsYou dont need to store the function inside a variable?
Posted by Ker Sing TanKer Sing Tan
10,573 Points1 Answer
-
A X
12,842 Points3 Answers
-
A X
12,842 Points2 Answers
-
Miguel Nunez
3,266 PointsWhat is it meant when coders say this about print_r in php?
Posted by Miguel NunezMiguel Nunez
3,266 Points1 Answer
-
Miguel Nunez
3,266 PointsWhat is a language construct in simplicity in php with out using big fancy words.?
Posted by Miguel NunezMiguel Nunez
3,266 Points0 Answers
-
Miguel Nunez
3,266 PointsWhat's the difference between an echo and a return.?
Posted by Miguel NunezMiguel Nunez
3,266 Points0 Answers
-
Miguel Nunez
3,266 PointsWhy is it so hard for people to explain what a return means in php in simple terms?
Posted by Miguel NunezMiguel Nunez
3,266 Points3 Answers
-
Miguel Nunez
3,266 Points4 Answers
-
PLUS
Fabian Pijpers
Courses Plus Student 41,372 Points1 Answer
-
Xing Li
2,112 Points3 Answers
-
Omer Asadullah
10,415 Points4 Answers
-
shaunboleh
14,970 Points3 Answers
-
orange sky
Front End Web Development Techdegree Student 4,945 Points3 Answers
-
Tawny Bartlett
24,674 Points1 Answer
-
Ezra John Alvarez
557 Points3 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up