A string may refer to any of the following:
1. A string is any series of characters that are interpreted literally by a script. For example, "hello world" and "LKJH019283" are both examples of strings. In computer programming, a string is usually attached to a variable as shown in the example below.
$example = "Example of a string";
print "Example variable = $example";
In the above example, the variable "$example" is assigned the value "Example of a string." Then, the second line prints "Example variable = Example of a string" when the script is run.
Tip: In most programming languages the string can be either only letters or be letters and numbers (alphanumeric). Many languages also support a string as numbers only, but often will be classified as an integer if it is only numbers.