Change $i++ to ++$i in php snippet

No more nits