Page 1 of 1

php number

Posted: Thu Apr 21, 2011 4:42 am
by giga
please tell me how to use a number in php that i can increase using code and display that number using code.
do you get me?

Re: php number

Posted: Thu Apr 21, 2011 6:03 am
by fugix
You could do. $number=5; $number++;
echo $number. Or you could use a for loop to output to a certain number

Re: php number

Posted: Thu Apr 21, 2011 12:41 pm
by califdon
giga wrote:please tell me how to use a number in php that i can increase using code and display that number using code.
do you get me?
No, not really. The literal answer to your question is simply to use a variable for the number. But I'm sure that's not what you're really trying to ask. Tell us what it is that you are trying to do and we can give you an appropriate answer.