Jump to content

php integer question


kokomjolk

Recommended Posts

Hello from Maine!

 

I am trying to create a sign that will have the numbers 1-200,000 typed out with spaces in between and found an answer using php that had me plugging this in:

 

<?php

$lowestnum = 1;

$highestnum = 200000;

 

for($i=$lowestnum; $i<=$highestnum; $i++){

echo "$i, ";

}

?>

 

I wouldn't be surprised if it was my own incompetence getting in the way, but I am having a tough time making this happen.

 

Any help? Besides my eternal gratitude I could send a funny video of one of my friends wiping out while covering a news story as thanks.

 

 

Link to comment
https://forums.phpfreaks.com/topic/117726-php-integer-question/
Share on other sites

wow, thanks for the quick responses -

 

i am a true neophyte when it comes to all this, (my training wheels still have visible tread)

 

is there any way to walk me through this? i realize you didn't wake up this morning wondering how you could help a complete stranger, so anything would be very much appreciated

 

thanks again

Link to comment
https://forums.phpfreaks.com/topic/117726-php-integer-question/#findComment-605528
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.