- var_dump: documentation ( source)
- str_repeat: documentation ( source)
- preg_match_all: documentation ( source)
<?php
preg_match_all('~([a-z])([0-9])~', 'b53d34a32', $matches);
var_dump($matches);
print str_repeat('=-', 42);
preg_match_all('~([a-z])([0-9])~', 'b53d34a32', $matches, PREG_OFFSET_CAPTURE);
var_dump($matches);