note 18781 added to ref.array
| From: | php dot net at chiefworks dot com | Date: | Tue, 05 Feb 2002 16:56:25 +0000 |
| Subject: | note 18781 added to ref.array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-26262@lists.php.net to get a copy of this message | ||
To display the value of a variable from a three dimentional array inside a quoted string, use the
following syntax:
<?php
$var = array(
'name' => array(
'first' => 'Caleb',
'last' => 'Maclennan'
)
);
echo "My first name is {$var[name][first]}!";
?>
--
http://www.php.net/manual/en/ref.array.php
http://master.php.net/manage/user-notes.php?action=edit+18781
http://master.php.net/manage/user-notes.php?action=delete+18781
http://master.php.net/manage/user-notes.php?action=reject+18781