<?php $literal = '23412167894125123'; for ($c = 0; $c < strlen($literal) - 2; $c++) { if(intval($literal[$c]) + 1 == intval($literal[$c + 1]) && intval($literal[$c]) + 2 == intval($literal[$c + 2])) { echo $literal[$c], $literal[$c + 1], $literal[$c + 2], '<br />'; } }
You have javascript disabled. You will not be able to edit any code.