sytax error, but where?
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.
.
Relevant Pages
- Re: Very simple VHDL problem
... an error that I do not understand: "parse error, ... very simple code is at the bottom of this post, ... declare your signal cnt as unsigned instead of std_logic_vector ... signal switches is an array of std_logic, ... (comp.arch.fpga) - Re: refresh on submit
... the index would cause a parse error.) ... This is correct either (complex/curly syntax). ... one could say the array is accessed ... (comp.lang.php) - array as class property question
... I am using PHP 4 with classes but I have come across a slight problem... ... I can't declare an array as a property of a class, ie, ... Parse error: parse error, expecting `','' or `';'' in ... (comp.lang.php) - Re: deleting a line
... member.txt what php code or logic would help me accomplish this? ... Make the changes to the array (the "unset" function is ... The parse error itself comes from the missing semicolon on the line ... (comp.lang.php) - Re: array question
... Parse error: ... Chad Lupkes ... >> I have a multidimensional array that I want to pull information from on ... >> Line 12 is the end of the foreach loop. ... (comp.lang.php) |
|