Re: Hashes in strings

From: Date: Thu, 02 May 2002 08:56:34 +0000
Subject: Re: Hashes in strings
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-95653@lists.php.net to get a copy of this message
I don't know the answer to why, but you can do this: $str = "I can use ".$hash['vars']." in strings"; :) Justin French -------------------- Creative Director http://Indent.com.au -------------------- on 02/05/02 6:42 PM, Ferry van Steen (ferry.van.steen@InfoPart.nl) wrote: > 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 >

« previous php.general (#95653) next »