|
Posted by carlton on 10/30/05 00:54
41 class C_Category{
42 // var $name = array(); changed to var $catname="";
43 var $catname = "";
44 $PictureList[] = new C_PictureList();
45 }
the above code (line numbers added) gives the error message:-
Parse error: parse error, unexpected T_VARIABLE, expecting
T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /var/www/html/lc.php on
line 44
The class C_PictureList is defined prior to line 41
Is this the correct syntax for an array of objects?
T.I.A.
Navigation:
[Reply to this message]
|