|
Posted by Jerry Stuckle on 12/18/27 11:44
Mike Schumann wrote:
> I have the following PHP code:
>
> <?php
> class zen_categories_ul_generator {
> var $root_category_id = 0,
> $max_level = 6,
> $data = array(),
> $root_start_string = '',
> $root_end_string = '',
> $parent_start_string = '',
> $parent_end_string = '',
>
> $child_start_string = '<li%s>',
> $child_end_string = '</li>'."\n",
>
> $spacer_string = '',
> $spacer_multiplier = 1;
>
> etc..........
>
> I am getting a parse error in this line:
>
> $child_end_string = '</li>'."\n",
>
> PHP doesn't like the period character.
>
> I am running PHP Ver 4.4.2
>
> Does anyone have any ideas what is going on?
>
> Thanks,
The period is fine. But the comma at the end isn't.
If you really do have a semicolon at the end, look for mismatched single or
double quotes on a previous line.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|