Someone
public php v1 · immutableThe contents of $newArray[pathToFile] is a unix dir path, like /usr/local/bin for example.while ( $newArray = mysql_fetch_array ( $result ) ){ $a = array(); $b =& $a; foreach (explode('/', trim($newArray[pathToFile], '/')) as $seg) { $b[$seg] = array(); $b =& $b[$seg]; }}?>