I simply would prefer if the built in preg_match functions would just return the values instead of the current method of supplying a predefined array.
composer require redacteddevworks/preg_match2
require 'autoload.php';
$matches = preg_match2('/([\d])/', 'the quick 1 jumped over the lazy 2 dog');