Suivez-Nous sur TwitterTrouvez-Nous sur Facebook
English
  • PHP Tutorial - 17 - Return Values
    Envoyer cette vidéo à vos ami(e)s
    Obtenir le code d'intégration de la vidéo
    Envoyer cette vidéo par:
    Suivez-Nous sur TwitterTrouvez-Nous sur Facebook


    Envoyée le dimanche 20 juillet 2008 13:01:07
    par thenewboston
    Vue 40785 fois
    4.9 / 5
    12345
    136 vote(s)

    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!



    facebook
  • Écrire votre commentaire ici...
  • AnotherTryingTime

    People, you can use return $a + $b; too! great videos btw
    samedi 21 avril 2012 18:58:41
  • aditya8080993750

    @envy power Yes u can like this fumction($var, $vare)
    mercredi 07 décembre 2011 12:43:13
  • kojax98

    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...
    mardi 20 septembre 2011 03:49:37
  • hammadghulam

    let me returnnnnnnnnnnnnnnnnnnnnnnn
    samedi 02 avril 2011 14:11:59
  • m0gria

    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.
    mercredi 05 janvier 2011 07:23:48
  • DR01D5

    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"
    lundi 03 janvier 2011 16:37:08
  • lonelystarpaolo

    if I really want to add those numbers can I just use the one on the past tutorials... the one with the basic math...
    jeudi 02 décembre 2010 23:50:24
  • MisterJ4512

    @admiral3131 echo prints something on the scree, return "brings" something from a function / variable
    vendredi 24 septembre 2010 12:00:32
  • arlkweith

    many thanks for tutorials
    jeudi 16 septembre 2010 06:34:49
  • jovenmedia

    real nice champion
    vendredi 20 août 2010 14:14:54
  • TheRealAuxiliary

    to make it changeble :D
    jeudi 15 juillet 2010 10:17:08
  • diangelisj

    hi dude, thanks for lessons.  =]
    lundi 28 juin 2010 09:35:20
  • after731

    Hmmm so when you use 'return' you need to add 'echo' to print the function?
    lundi 07 juin 2010 08:28:36
PUBLICITÉ
Suppléments
Réseaux sociaux
Nuage de tags