3-dimensional array

[email protected] (Gavin LaRowe)
Newsgroups php.general
Message-ID <[email protected]>
Newbie problem:  I'm having trouble retreiving all of the values from a
three-dimensional array ($bubs). The code that sets it up is below. I've
tried using three 'for' loops, but this
didn't work. 

Thanks,

Gavin
[email protected]

====================

else {
 
      while (list($key,$val) = each($HTTP_POST_VARS)) {
         $dd = $day; 
         $mm = $month; 
         $yy = $year; 
         $dater = $dater1;
	 if (!ereg("aer_", $key) && !ereg("goal_", $key) && !ereg("Submit",
$key) && !ereg("day", $key) && !ereg("month", $key) && !ereg("year", $key)
&& !ereg("dater", $key)) {
            if (ereg("m([0-9+]+)e([0-9+]+)(_.*)", "$key", $ex_s)) {
                $ex_s[3] = ereg_replace("_", "", $ex_s[3]);
                $bubs[$ex_s[2]][$ex_s[1]][$ex_s[3]] = "$val";
            } 
         }
      }
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.