Introduction

Strings in PHP are sequences of bytes. They are binary-safe (i.e., theyc an contain null bytes) and can grow and shrink on dmeand. Their size is limited only by the amount of memory that is available to PHP.

Strings can be initialized in three ways: with single quotes, with double quotes, and with the "here document" (heredoc) format.


Strings | Introduction | Formatting Strings | Converting to and from Strings | Finding the Length of a String | Accessing Substrings | Extracting Substrings | Replacing Substrings | Taking Strings Apart | Processing a String One Byte at a Time | Reversing a String by Word or Byte | Controlling Case | Trimming Blanks from a String | Wrapping Text at A Certain Line Length
© 2008: Hann So
email: hso@voyager.deanza.edu