[ciapug] Array building

Chris Van Cleve ciapug@cialug.org
Wed, 13 Apr 2005 13:10:32 -0500


No line 3 is:
>> 	'keywords' => 'Some text',


On Apr 13, 2005, at 12:30 PM, Dave J. Hala Jr. wrote:

> It looks ok to me. Is $meta = array on line three?
>
> On Wed, 2005-04-13 at 12:18, Chris Van Cleve wrote:
>> I have never had a reason to hand build an array before, and now that 
>> I
>> have a reason I cannot seem to get it to work. Is there any reason the
>> following is not valid?
>>
>> // Build array of meta information
>> $meta = array (
>> 	'keywords' => 'Some text',
>> 	'htdig-keywords' => 'Some text',
>> 	'description' =>'Some text',
>> 	'author' => 'Some text',
>> 	'revisit-after' => 'Some text',
>> 	'distribution' => 'Some text',
>> 	'generator' => 'Some text',
>> 	'rating' => 'Some text'
>> );
>>
>> It's not single vs double quotes. It throws the same error either way:
>>
>> [error] PHP Parse error:  parse error, unexpected T_STRING, expecting
>> ')' in /path/to/document/index.php on line 3
>> _______________________________________________
>> ciapug mailing list
>> ciapug@cialug.org
>> http://cialug.org/mailman/listinfo/ciapug
> -- 
>
> Open Source Information Systems (OSIS)
> Dave J. Hala Jr. <dave@osis.us>
> 641.485.1606
>
> _______________________________________________
> ciapug mailing list
> ciapug@cialug.org
> http://cialug.org/mailman/listinfo/ciapug
>
>