Jump to content

cloudnyn3

Members
  • Posts

    3
  • Joined

  • Last visited

cloudnyn3's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. esentially what I'm doing is this <?php $first=400; $second=300; echo "$first - $second"; ?> I'm looking to do it using a loop around?
  2. Ah thank you, that was my mistake for not paying attention. So when it outputs, its just a long ass string of numbers. like REALLY long. shouldn't it just stop and output the value of the 2nd number? which would in theory be 400 now that its incremented up?
  3. Hi there, so I'm having a little trouble understanding looping and arrays or inputs. I'm a Pshell programmer and things are done MUCH differently lol So heres the script I've created. <?php $first=400; $second=300; for ($i = $first; $second < $i; $i++) { echo $i; } ?> What I'm trying to accomplish is taking the first Number and the second and get it to count or "loop" up to 400 from the lower number. Then have it output the result. I'm not sure what I'm doing wrong here though......
×
×
  • 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.