Hi Scott,
A fine challenge! But not one without a solution. What you need is curly syntax. Its very straightforward.
if ($_COOKIE["font"]["type"]) echo "face={$_COOKIE["font"]["type"]} ";
This is talked about in detail in the PHP manual page on strings.
http://www.php.net/manual/en/language.types.string.php
PHP is able to recognize a single layer of nested array, but when you get into multidimensional arrays, that is arrays more than a single layer deep it has no mechanism for recognition beyond the first layer, that is not without the help of curly syntax. Which will tell PHP that the object inside of curly braces is to be treated as a variable.
The statement may be written in a couple of ways.
An alternate way of using curly syntax:
if ($_COOKIE["font"]["type"]) echo "face=${_COOKIE["font"]["type"]} ";
And by using the join operator:
if ($_COOKIE["font"]["type"]) echo "face=".$_COOKIE["font"]["type"]." ";
When you try to escape the quotes, this makes php want to treat the quotes as literal, I'll bet you'll find the string 'Array["font"]["type"]' in your html source code. The reason being, $_COOKIE is an array so it prints that as its value and ["font"]["type"] because what you wrote caused PHP to display the array nesting literally.
: )
Rich
:::::::::::::::::::::::::::::::::
Smiling Souls
http://www.smilingsouls.net
:::::::::::::::::::::::::::::::::