Re: Adding strings together....
| From: | Chris Dowell | Date: | Thu, 03 Aug 2000 17:13:18 +0000 |
| Subject: | Re: Adding strings together.... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-9986@lists.php.net to get a copy of this message | ||
is that supposed to say beta?
chris
Richard Edens <richard@bloom.nl> wrote in message
news:B5AF55CC.993%richard@bloom.nl...
> Hi,
>
> With Richard Edens...
> I've read the tutorial about PHP but i can't find annything for
> the following simple problem...
>
> Adding strings together...
> In javascript for instance this might look like this:
>
> ----
> var text_alpha = "hallo ";
> var text_berta = "world...";
>
> text_alpha = text_alpha + textberta;
> ----
>
> 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
>