PHP Tutorial – 17 – Return Values

[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –


Posted

in

by

Tags:

Comments

29 responses to “PHP Tutorial – 17 – Return Values”

  1. Daksh Beniwal Avatar

    who else is sick of wix.com commercial

  2. zulkeple zaini Avatar

    emmm..i still dont understand how this can help me build one website..

  3. HikikomoriGamer Avatar

    MAGIC! DA MAGIC YO!

  4. Moon Bilguun Avatar

    2:55 World of Warcraft !

  5. ChrisPTY507 Avatar

    You sound kinda drowsy,take a rest!!!

  6. Andrei Vlad Avatar

    You don't sound like bucky… 🙁

  7. Alan Jones Avatar

    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!

  8. Eitor Laba Avatar

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

  9. Aleksa Kojadinović Avatar

    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…

  10. ninjakid09x Avatar

    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. 🙂

  11. m0gria Avatar

    @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.

  12. Jozef Podlecki Avatar

    so what's the diffrence between echo $lol which &lol = &a +&b and return &lol which &lol = &a +&b

  13. Henrique Ferrolho Avatar

    why do you use return? isn't it the same as using echo $total?

  14. paolo escopete Avatar

    if I really want to add those numbers can I just use the one on the past tutorials… the one with the basic math…

  15. 404 Not Found Avatar

    @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.

  16. Vangoat Avatar

    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;

  17. Ariel Chyłek Avatar

    many thanks for tutorials

  18. Ben Joven Avatar

    real nice champion

  19. marr0w Avatar

    What's the difference between return and echo?

  20. TheErroneousOne Avatar

    Oh! How embarrassing!

  21. carro Avatar

    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.

  22. xxheroguyxx Avatar

    Aw y not add(32,32); XD

  23. SwitchRich Avatar

    Well, it's because the total isn't being passed in, it's being calculated and returned.

  24. Strongbadunit2 Avatar

    nice! this will be very useful!

  25. CamiloSanchez1979 Avatar

    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)

  26. CamiloSanchez1979 Avatar

    i meant "make a tutorial"

  27. CamiloSanchez1979 Avatar

    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

Your email address will not be published. Required fields are marked *