[ciapug] Array building

Chris Van Cleve ciapug@cialug.org
Wed, 13 Apr 2005 12:18:40 -0500


I have never had a reason to hand build an array before, and now that I=20=

have a reason I cannot seem to get it to work. Is there any reason the=20=

following is not valid?

// Build array of meta information
$meta =3D array (
	'keywords'=A0=3D> 'Some text',
	'htdig-keywords'=A0=3D> 'Some text',
	'description'=A0=3D>'Some text',
	'author'=A0=3D> 'Some text',
	'revisit-after'=A0=3D> 'Some text',
	'distribution'=A0=3D> 'Some text',
	'generator'=A0=3D> 'Some text',
	'rating'=A0=3D> '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=20
')' in /path/to/document/index.php on line 3=