Re: Printing variables (newbie question)

From: Date: Tue, 22 Aug 2000 06:38:45 +0000
Subject: Re: Printing variables (newbie question)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12892@lists.php.net to get a copy of this message
On 22 Aug, Dean Hall wrote: >> Only 'simple' variables are expanded in double quotes > > Couldn't you do: > > echo "text{$some_var[$i]}"; > > as well? > > Dean. > I decided to run this and sure enough, it works. Interestingly, I found that the "text $somevar[$i]" form also works for me under PHP 4.0.1 pl2 Cheers -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#12892) next »