If you like the video, share it with your friends on these social sites:

 

Title: PHP Tutorial - 17 - Return Values

Added: Jul 20, 2008

Author: thenewboston

Duration: 3:34

Description:
Go to my website http://thenewboston.com/ if you need any help or have any questions. I will answer them all there! Subscribe if you like my videos!

Related Videos:

Videos related to 'PHP Tutorial - 17 - Return Values'

Channel: People

Tags: php  tutorials  tutorial  mysql  how  to  howto  learn  basic  101  advanced  programming  computer 



php  tutorials  tutorial  mysql  how  to  howto  learn  basic  101  advanced  programming  computer 

Youtube Comments: 47

after731 Says:

Jun 7, 2010 - Hmmm so when you use 'return' you need to add 'echo' to print the function?

mangoprojects Says:

Jun 11, 2010 - thank you. - behind vfx

diangelisj Says:

Jun 28, 2010 - hi dude, thanks for lessons.  =]

JonnyJC93 Says:

Jul 11, 2010 - im confused..... why do you need to do this to add numbers when you can putecho *number*+*number*

TheRealAuxiliary Says:

Jul 15, 2010 - to make it changeble :D

Admiral3131 Says:

Aug 13, 2010 - What's the difference between return and echo?

jovenmedia Says:

Aug 20, 2010 - real nice champion

tdhashan Says:

Aug 31, 2010 - Thanks a lot dear... God bless u Honestly !!! U are Best !!!!!!

arlkweith Says:

Sep 16, 2010 - many thanks for tutorials

eetufck Says:

Sep 23, 2010 - Basically, when you use the return function it returns whatever variable that follows the return statement. That is, when he echoed add(12, 343), the value that got put into the echo function is the value of $total which was $a + $b.He could have just as easily typed: $newVariable = add(12, 343); echo $newVariable;

MisterJ4512 Says:

Sep 24, 2010 - @admiral3131 echo prints something on the scree, return "brings" something from a function / variable

COMMANO38 Says:

Nov 21, 2010 - Its just an example. Your not getting the point, he's teaching you how to return variables. You would never use this function, just an example.

lonelystarpaolo Says:

Dec 2, 2010 - if I really want to add those numbers can I just use the one on the past tutorials... the one with the basic math...

Diifusal Says:

Jan 2, 2011 - why do you use return? isn't it the same as using echo $total?

DR01D5 Says:

Jan 3, 2011 - It's not the same. You only use echo if you want it to appear on the website. For most of the functions you definitely don't want that. So you probably just want to continue working with the result "behind the scenes"

Jozekban Says:

Jan 4, 2011 - so what's the diffrence between echo $lol which &lol = &a +&b and return &lol which &lol = &a +&b

m0gria Says:

Jan 5, 2011 - no, it isnt! If you write echo $total, the text will be echoed. If you return $total, you can use the value of $total, outside of the function.

ninjakid09x Says:

Jan 25, 2011 - Knowing Lua and VB made me already know about functions parametres and etc.. though your tutorials are very nicely done and I am actually understanding PHP more now. Thanks. :)

hammadghulam Says:

Apr 2, 2011 - let me returnnnnnnnnnnnnnnnnnnnnnnn

masa992 Says:

May 1, 2011 - php has alot in common with C....but its easyer than C ofc

kojax98 Says:

Sep 20, 2011 - you explain everything well, but my problem is that now, I don't remember syntaxes for statments, I mean when I watched this video I knew everything from it but now I can't remember Do, While or For loops...

Hersh715 Says:

Oct 10, 2011 - u should be a programming professor at Stanford!

aditya8080993750 Says:

Dec 7, 2011 - @envy powerYes u can like this fumction($var, $vare)

frankkoq Says:

Dec 7, 2011 - muchas gracias (Y)

AnotherTryingTime Says:

Apr 21, 2012 - People, you can use return $a + $b; too!great videos btw

Shopping | prank calls | Wholesale products | english movies | prank calls | proxy | links | prank call

Topfacebookvideos funny arabic videos

Privacy Policy