note 15556 added to language.variables.scope

From: Date: Mon, 17 Sep 2001 17:56:17 +0000
Subject: note 15556 added to language.variables.scope
Groups: php.notes 
Request: Send a blank email to php-notes+get-18084@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 />"; http://www.php.net/manual/en/language.variables.scope.php

« previous php.notes (#18084) next »