Re: How to append string
| From: | Five | Date: | Wed, 25 Feb 2004 20:12:16 +0000 |
| Subject: | Re: How to append string | ||
| References: | 1 2 | Groups: | php.lang |
| Request: | Send a blank email to php-lang+get-557@lists.php.net to get a copy of this message | ||
Thanks,
I get it now. I should have been looking up string operators instead of string functions.
"Rasmus Lerdorf" <rasmus@php.net> wrote in message news:Pine.LNX.4.58.0402251047410.1640@thinkpad.lerdorf.com...
> . not +
>
> As in $array[3] = $array[3] . "more string";
>
> Or simply: $array[3] .= "more string";
>
> -Rasmus
>
> On Wed, 25 Feb 2004, Five wrote:
>
> > I've been looking through srting functions for an hour and now know how to do
> > everything besides what I need to do.
> >
> > I have an arrray of strings. I want to append another string to a string in one element of
> > the array. I'd just do it this way
(or
> > something like it) but I can't get it to work:
> >
> > array[3] = array[3] + "more string";
> >
> > It doesn't seem to work like C, java or javascript languages.
> >
> > Thanks,
> > Dale
> >
> > --
> > PHP Language Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >