PHP #3 - Using Variables for Maths


SUBMITTED BY: Guest

DATE: May 15, 2013, 6:48 a.m.

FORMAT: Text only

SIZE: 159 Bytes

HITS: 1162

  1. $int1 = 1; // value of 1
  2. $int2 = 2; // value of 2
  3. $int_total = $int1 + $int2; // 1+2
  4. Echo '$int_total'; // this should show the number 3

comments powered by Disqus