- var_dump: documentation ( source)
- chr: documentation ( source)
- preg_match: documentation ( source)
- implode: documentation ( source)
- range: documentation ( source)
<?php
$collection = range( 'A', 'Z' );
$offset = 1;
$limit = 6;
$alpha = implode("", $collection);
Preg_match("/.{0," . $limit ."}" . chr(65 +$offset) . ".{0," . $limit ."}/", $alpha, $match);
Var_dump($match);