# Variables to increment in flash

**URL:** <https://forum.kirupa.com/t/variables-to-increment-in-flash/44319>\
**Category:** programming\
**Created:** [March 2, 2004, 9:16pm UTC](https://forum.kirupa.com/t/variables-to-increment-in-flash/44319 "2004-03-02T21:16:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lacuna](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@Lacuna](https://forum.kirupa.com/u/Lacuna)\
**Post date:** [March 2, 2004, 9:16pm UTC](https://forum.kirupa.com/t/variables-to-increment-in-flash/44319/1 "2004-03-02T21:16:08Z")

</div>

Hey all, just had another post here but thought i’d re-name it and start over as i was getting nowhere with the other one :c)

* * *

How, in php, do i write &result to increment by 1 for each entry?  
ex. &result1 &result2 &result3

I’ve got the following code to work:

```php

if ($i == 0) {
print "&result=$output";
}
if ($i == 1) {
print "&result2=$output";
}

```

but I cant number all the entries with that method.

~ Seretha :love:
