- substr: documentation ( source)
- time: documentation ( source)
<?php
$archiveName = time();
$archivePath = substr($archiveName, 0, 6);
$archivePath .= DIRECTORY_SEPARATOR . substr($archiveName, 6);
echo $archiveName . PHP_EOL;
echo $archivePath;