<?php

if (preg_match('/(\d{2})(\d{2})(\d{4})/', '11092018', $matches)) {
    echo "{$matches[1]}-{$matches[2]}-{$matches[3]}";
}