## Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

### Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.  PLUS

# Why does y = 5?

The question asked what y =. I chose 5 because the parameters in the function sum_two_numbers when setting the y variable are 2,3.

Does this mean that because the y variable is called later than when the x variable is defined, that within the function, x becomes 2 and y becomes 3, and therefore y becomes the return of z (which is 5) because y = the output of the function?

What confuses me about this, though, is doesn't mean that mean in the function y=5 and x=1? wouldn't that make it 6??

It's a little confusing!

\$x = 1;

function sum_two_numbers(\$x,\$y) { \$z = \$x + \$y; return \$z; }

\$y = sum_two_numbers(2,3); echo \$y; 