- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.28, 5.5.0 - 5.5.12
- Parse error: syntax error, unexpected ')' in /in/dSHF8 on line 6
Process exited with code 255.
<?php
$re = '/([\D]+)|([\d]+)/';
$str = 'a74b8c0d3845e7';
preg_match_all($re, $str, $matches);
print_r(array_combine(array_values(array_filter($matches[1])),array_filter($matches[2]))));