Strings wear many hats in PHP—far from being relegated to mere collections of textual characters, they can be used to store binary data of any kind—as well as text encoded in a way that PHP does not understand natively, but that one of its extensions can manipulate directly.
String Basics
String Basics