Hi,
is it possible to return an array of objects from a function?
example (very simple and stupid..):
function getArticles()
{
$art1 = new article(12345);
$art2 = new article(23456);
$art3 = new article(34567);
$array[0] = $art1;
$array[1] = $art2;
$array[2] = $art3;
return $array;
}
when I try:
$articles = getArticles();
the function doesn`t return an array....
=> gettype($articles) returns "NULL"
I`m running PHP 4.0.6 on Linux (Apache 1.3.20)
Thanks in advance
Martin Lilienthal