-
-
-
Though you now have your answer, you've entirely overthought this:
$a = 'abc'; $b = 'xyz';
$a.$b becomes 'abcxyz'
To insert a space, that is another step, using $a.' '.$b
And of course you'll have to pick what value is $a, and what is $b.
In short, using the . operator will add two strings.
And as Twey has pointed out, the .= is just a shortcut to $a = $a.$b;. There is no shortcut for using =., and equivalent of $a = $b.$a;
Daniel -
Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks