ChrisB: Problem mit rekursiver Erstellung eines mehrd. Array

Beitrag lesen

Hi,

  	// wenn Ordnerelement ein Ordner ist, neues Unterarray erstellen und die Funktion damit neu aufrufen  
  	if(is_dir($pfad.$ordner)) {				  
  		$mainArray[$ordner] = array();			  
  		readdirs($pfad.$ordner.'/', $mainArray[$ordner],$z+1);   	  
  
Deine Funktion hat einen Rückgabewert – aber mit dem machst du hier nichts.  
  
Warum packst du ihn nicht in dein Array …?  
  
MfG ChrisB  
  

-- 
RGB is totally confusing - I mean, at least #C0FFEE should be brown, right?