<?php $string = '405090000'; preg_match('/^(?<year>\d{1})(?<month>\d{2})(?<day>\d{2})/', $string, $matches); var_dump($matches);
You have javascript disabled. You will not be able to edit any code.