my problem is I want to combine [1] with [2]. The source is "20100930-storage-primary.csv" but I only want "storage-primary". Can you help me?
This is the script I use to explode them:
$Name = 20100930-storage-primary.csv;
$array = explode( '.' , $Name);
$array1 = explode( '-' , $array[0]);
var_dump ($array1);
OUTPUT
array(3) { [0]=> string(8) "20100930" [1]=> string(7) "storage" [2]=> string(7) "primary" }