Adding strings together....
| From: | Richard Edens | Date: | Thu, 03 Aug 2000 16:01:00 +0000 |
| Subject: | Adding strings together.... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-9945@lists.php.net to get a copy of this message | ||
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