[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –
PHP Tutorial – 17 – Return Values
by
Tags:
Comments
29 responses to “PHP Tutorial – 17 – Return Values”
-
who else is sick of wix.com commercial
-
emmm..i still dont understand how this can help me build one website..
-
MAGIC! DA MAGIC YO!
-
2:55 World of Warcraft !
-
You sound kinda drowsy,take a rest!!!
-
You don't sound like bucky… 🙁
-
Very easily explained, thank you. Much better than the tutorial I've been bating my head in trying from Kevin Skoglund in Lynda.. do not try that tutorial because the teacher sux balls and explains horribly. You however, explained this well and in simple terms unlike that dickhead. Thanks!
-
People, you can use return $a + $b; too!
great videos btw -
muchas gracias (Y)
-
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…
-
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. 🙂
-
@Diifusal 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.
-
so what's the diffrence between echo $lol which &lol = &a +&b and return &lol which &lol = &a +&b
-
why do you use return? isn't it the same as using echo $total?
-
if I really want to add those numbers can I just use the one on the past tutorials… the one with the basic math…
-
@JonnyJC93 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.
-
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; -
many thanks for tutorials
-
real nice champion
-
What's the difference between return and echo?
-
Oh! How embarrassing!
-
I followed all your lessons so far, they are the best. I learnt more from you then any webpage or video could offer. You explain everything so clearly so the web nation can understand. Yes sir you are the one like neo.
-
Aw y not add(32,32); XD
-
Well, it's because the total isn't being passed in, it's being calculated and returned.
-
Nice tutorial!!
-
nice! this will be very useful!
-
Hi..thanks for the advice..i found a solution to the problem, but now that you mention it , I have been reading about the zend framework..but i just don't know how to tackle the whole thing..it seems so complicated. If you have more advice on frameworks (especially zend, let me know)
-
i meant "make a tutorial"
-
Hi. I just suscribed. Can you please a tutoria on sessions with the following conditions?
user goes to index then he registers he inputs data to mysql and then he goes to index where index recognizes him.He logs out and goes to index where he is no longer recognized, he clicks link and is sent to log in form, he logs in and then he goes to index and index recognizes him. He then logs out and session is destroyed.Can you do this? I am having a hard time trying to make it
Leave a Reply