<?php $input = '010069008517306731020020001319100421191004091395'; if (preg_match_all('/(01)(\d{14})|(310[12]|3202|1[135])(\d{6})|(21)(\d+)/', $input, $matches)) { $array = array_filter(array_combine($matches[1], $matches[2]) + array_combine($matches[3], $matches[4]) + array_combine($matches[5], $matches[6])); print_r($array); } else { echo "Invalid input!"; }
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`