As the title says, it's more out of interest really, I've got filenames in the format of 1347020478_Workbook1 12.19.19.csv
- What I want to do is shift the timestamp off the start of the filename and return everything else, so Workbook1 12.19.19.csv
I've got the following code which works fine:
$original_filename = explode('_', $list->file);
$timestamp = array_shift($original_filename);
$original_filename = implode('_', $original_filename);
As I say, the code above works but I wonder if there is a simpler way of doing so?