Concatenate
Concatenating is a form of string manipulation.
Concatenating is the idea of joining two (or more) text strings into one. Your particular coding language may have its own syntax for how to do this, but the general idea is that it will take two (or more) text strings as its inputs and output a single string that joins the text strings together. Like "snow" + "ball" = "snowball".
You can helpfully think of this in mathematical terms as 1 + 1 = 11, where the two 1's here are not numbers, but text strings being joined together.
So the next time you need to join multiple text strings together into a single unit, but you don't remember how to exactly do it in the language at hand, you can use the general programming word in your search: "How to concatenate in [my language]".
+ =
// in JavaScript
<script>
    var s = "snow" + "ball";
    alert(s);
</script>
// in PHP
<?
    $a = "snow";
    $b = "ball";
    $c = $a . $b;
    echo $c;
<?
// in Microsoft Power Automate's Expression panel
concat("snow","ball")
The opposite of concatenating two strings, would be to split a string into multiple sections where a certain text string is found in the original string, or to slice a string at certain character positions. Putting two arrays together is called joining them.
Comments
You must sign in to comment
We use cookies to help run our website and provide you with the best experience. See our cookie policy for further details.