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:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 4:42 AM
To: [EMAIL PROTECTED]
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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to