Re: Nevermind I figured it out

From: Date: Thu, 28 Mar 2002 00:28:36 +0000
Subject: Re: Nevermind I figured it out
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-90451@lists.php.net to get a copy of this message
David, There is a better way to do through a similar operator. $variable = "hello and welcome"; $variable .= " to www.newimagedesign.com"; therefore... print ($variable); would result in... hello and welcome to www.newimagedesign.com hope this helps. -Jordan K. Martin New Image Design ------------- "David Johansen" <daveisfera@yahoo.com> wrote in message news:20020327191233.17531.qmail@pb1.pair.com... > I just user $message = $message . "Some text"; > But is there a "better" way to do this with something like the += operator? > Dave > > "David Johansen" <daveisfera@yahoo.com> wrote in message > news:20020327190312.5497.qmail@pb1.pair.com... > > I was just wondering if there was a way to add new text to the end of > > strings. I tried doing > > $message += "Some text here"; > > but that just set $message to 0. I'm sure it's something simple but I > > couldn't find anything on it in the documentation. > > Dave > > > > > >

« previous php.general (#90451) next »