php3-list | 199807

Re: [PHP3] From: Zeev Suraski (bourbon <email protected>)
Date: 07/02/98

The . operator (dot operator) works as a concatenation operator througout
the whole of PHP 3.0.

Zeev

On Thu, 2 Jul 1998, Marcus Johansson wrote:

> >> 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";
>
> That's a feature I didn't know about!
> Can I use it to add strings together?
>
> $a=$b.$c;
> instead of
> $a=$b+$c; ?
>
> Or is it only for breaking strings like:
> $a="$b".$c."$d"; (Something like that..)
>
> Does it work on functions too?
>
> ---
> Marcus
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
> --
> 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
>
>

-- 
-----------------------------------------------------
Zeev Suraski <zeev <email protected>>
For a PGP public key, finger bourbon <email protected>

-- 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