Updated: 04/26/2017 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, "hello world" and "LKJH019283" are both examples of strings. In computer programming, a string is attached to 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.


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