1. Home
  2. Computing & Technology
  3. PHP / MySQL

String

By Angela Bradley, About.com

Definition: In programing a string is a sequence of letters, numbers or symbols. Although it can contain numbers, a string does not represent a numeric value (other than perhaps 0 or 1 to determine if it exists). Some examples of strings are:
<?php
$string1 = "This is a string";
//a string can be a sentence
$string2 = "String";
//a string can be a word
$string3 = "Blue22";
//a string can contain numbers
$string4 = "The number 4 can be written as #4";
//a string can contain symbols
?>
Explore PHP / MySQL
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. PHP / MySQL
  4. Programing Glossary
  5. PHP String - Programming String - Text String

©2009 About.com, a part of The New York Times Company.

All rights reserved.