Thankyou liquorvicar, I just couldn't get my head around how to do this. I was actually looking for something that could handle an infinate number of arrays, but as I only need up to 5, I have used this:
i$tmpArray = $this->taskArray["reoccurringTimes"];
if(!isset($tmpArray["minute"])) $tmpArray["minute"]["0"] = "";
if(!isset($tmpArray["hour"])) $tmpArray["hour"]["0"] = "";
if(!isset($tmpArray["mday"])) $tmpArray["mday"]["0"] = "";
if(!isset($tmpArray["month"])) $tmpArray["month"]["0"] = "";
if(!isset($tmpArray["wday"])) $tmpArray["wday"]["0"] = "";
foreach($tmpArray["minute"] as $null=>$minute){
foreach($tmpArray["hour"] as $null=>$hour){
foreach($tmpArray["mday"] as $null=>$mday){
foreach($tmpArray["month"] as $null=>$month){
foreach($tmpArray["wday"] as $null=>$wday){
$this->queryTimes[] = array("minute"=>"$minute","hour"=>"$hour","mday"=>"$mday","month"=>"$month","wday"=>"$wday");
}
}
}
}
}
laserlight, what I am actually doing is making a scheduleing app something like cron, I am taking an input from 5 select multiple boxes, and depending on which ones are selected, putting a row into a table for it.
Thanks for the help