RE: [PHP] Adding strings together....

From: Date: Thu, 03 Aug 2000 15:15:32 +0000
Subject: RE: [PHP] Adding strings together....
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-9947@lists.php.net to get a copy of this message
> text_alpha = text_alpha + textberta; $text_alpha .= $textberta; Will do what you want. Sincerely, Craig Vincent ------------------------- Senior Programmer Jazzmonkey Media Inc. http://www.jazzmonkey.com ------------------------- > ---- > > Witch means that 'text_aplha' became 'hello world...' > This even worked with an array: > > ---- > var text_alpha = "hallo "; > var text_berta = new Array(); > > text_berta[0] = "world..." > > text_alpha = text_alpha + textberta[0]; > ---- > > Now with 'emplode' you can split a string into an Array like with > javascript. but how can i add every array element with an enter key like > '\n' to a string??? > Witch in javascript this would look like: > > ---- > text_alpha = text_alpha + textberta[0] + '\n'; > ---- > > Thanks... > > ...Richard > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#9947) next »