note 15556 deleted from language.variables.scope by jimw
| From: | jimw@php.net | Date: | Sat, 08 Dec 2001 21:42:56 +0000 |
| Subject: | note 15556 deleted from language.variables.scope by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-22218@lists.php.net to get a copy of this message | ||
-----------( quote from above )---------
3) You can't reference a two dimensional array through a quoted echo (or other output
function), and so must unquote your echo and catenate in the array (e.g: echo "Result: " .
$db_data["name"][0] . "\<BR\>";
-------------( end quote from above )---------
Not true, you can stay within quotes, but you must wrap the variable in curly braces, ie:
echo "Result: {$db_data['name'][0]} <br />";