RE: [PHP] Hashes in strings
| From: | Steve Bradwell | Date: | Thu, 02 May 2002 12:57:46 +0000 |
| Subject: | RE: [PHP] Hashes in strings | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-95687@lists.php.net to get a copy of this message | ||
Not really sure but str has to be $str, and I usually do print lines like
this
$str = "I can NOT use ".$hash['vars']." in strings";
the . will concat the strings together.
Hope this helps,
-Steve
-----Original Message-----
From: Ferry van Steen [mailto:ferry.van.steen@InfoPart.nl]
Sent: Thursday, May 02, 2002 4:42 AM
To: php-general@lists.php.net
Subject: [PHP] Hashes in strings
Hey there,
why do these work:
$vars = "vars";
$ar[0] = "arrays";
$hash['vars'] = "hashes";
str = "I can use $vars in strings";
str = "I can use $ar[0] in string";
while this one doesn't:
str = "I can NOT use $hash['vars'] in strings";
Kind regards
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php