Changes

Jump to: navigation, search

Understanding PHP Variable Types

No change in size, 13:54, 20 June 2007
The PHP String Variable
The string variable type is used to hold strings of characters such as words and sentences. In addition to providing mechanisms for creating and changing entire string variable values, PHP allows you to extract and change parts of a string value.
A string can be assigned to variable either by surrounding it in single qoutes quotes (') or double qoutes quotes ("). If your string itself contains either single or double quotes you should use the opposite to wrap the string:
<pre>

Navigation menu