php number

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
giga
Forum Newbie
Posts: 4
Joined: Thu Apr 21, 2011 4:38 am

php number

Post 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?
fugix
Forum Contributor
Posts: 207
Joined: Fri Mar 18, 2011 8:01 pm

Re: php number

Post by fugix »

You could do. $number=5; $number++;
echo $number. Or you could use a for loop to output to a certain number
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: php number

Post 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.
Post Reply