<?php $a=array('0.txt','1.txt','2.txt','3.txt'); $n=(int)current(explode('.',end($a))); echo $n+=1; ?>
You have javascript disabled. You will not be able to edit any code.