String

Updated: 12/26/2023 by Computer Hope

A string may refer to any of the following:

Illustration of a rainbow coming out of a tablet and flowing through a computer screen.

1. A string is any series of characters that are interpreted literally by a script. For example, both "hello world" and "LKJH019283" are quotes containing strings, even though one is a phrase and the other is random letters and numbers. In computer programming, a string is attached to or stored in a variable as shown in the example below.

$example = "Example of a string";
print "Example variable = $example";

In the example above, 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 is classified as an integer if it's only numbers.

2. With Windows Sysinternals Strings is a utility to search for ANSI (American National Standards Institute) and Unicode strings in binary images.

Concatenation, Integer, Interpreted string, Literal strings, Programming terms, Search String, Substring