Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199807

Re: [PHP3] "multidim. array" problem From: Rasmus Lerdorf (rasmus <email protected>)
Date: 07/02/98

> Short description:
> Multidimensional arrays in double quotes (e.g. "$a[b][1]")
> are not expanded in the right way.

You can't use multi-dimensional arrays inside a quoted string like that.
Only simple variables are supported inside quoted strings right now. Not
a big limitation since you can just break out.

eg. echo "This is my ".$a[b][1]." variable";

-Rasmus

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive: http://www.tryc.on.ca/php3.html