Codice PHP:
//Acquisizione dal file , in questo esempio ho messo gia' la stringa a mano
$stringa="001,Sesso.002,Amore.003,Odio.004,Vita.005,Cervello.006,Cane.007,Topo";
$first_step=explode(".",$stringa);
for ($i=0;$i<count($first_step);$i++)
{
$second_step=explode(",",$first_step[$i]);
mkdir($second_step[1]);
mkdir($second_step[1]."/".$second_step[0]);
}