eksploduj foreach


$var = 'a/asdas/fgdfg/zfdvs/sdfh';
$array = explode('/', $var);
foreach ($array as $values)
{
//
}

Envious Elk