fork download
  1. <?php
  2.  
  3. if (preg_match('/(\d{2})(\d{2})(\d{4})/', '11092018', $matches)) {
  4. echo "{$matches[1]}-{$matches[2]}-{$matches[3]}";
  5. }
Success #stdin #stdout 0.01s 82624KB
stdin
Standard input is empty
stdout
11-09-2018