By the way, this is not actually a general PHP help mailing list, this
list is specifically for Zend Framework discussion. You would probably
be better off posting in one of the PHP mailing lists
(http://www.php.net/mailing-lists.php), or perhaps one of the many PHP
help forums (http://www.google.co.uk/search?q=php+help+forum).
Waigani wrote:
Okay here is the modified code - no print_r no elseif, same problem - no
return. I can't see what is wrong with the recursive function??
function page($parts, $i, $array){
foreach($parts as $part){
$page .= $part;
}
$array[$i] = $page;
$i++;
if($i < count($parts)){
array_pop($parts);
page($parts, $i, $array);
}else{
return $array;
}
}
Holografix wrote:
--
Jack