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