Jump to content

ldlonline

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ldlonline's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Gotcha! Thank you for the quick replies
  2. I just started PHP lessons and I have the following: <?php $a=5; $b=8; function add($a,$b) { $total=($a+$b); return $total; } echo "$a + $b = " . add($a,$b) . "<br />"; ?> What happens to the variable $total? If I say echo $total it doesn't print anything. Why can't I say: echo "$a + $b = $total"; ? Thanks in advance!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.