Ebook PHP Cookbook
a d v e r t i s e m e n t s

Strings in PHP are a sequence of characters, such as "We hold these truths to be self evident," or "Once upon a time," or even "111211211." When you read data from a file or output it to a web browser, your data is represented as strings.
Individual characters in strings can be referenced with array subscript style notation, as in C. The first character in the string is at index 0. For example:
$neighbor = 'Hilda';
print $neighbor[3];
d
However, PHP strings differ from C strings in that they are binary-safe (i.e., they can contain null bytes) and can grow and shrink on demand. Their size is limited only by the amount of memory that is available.
Download Ebook PHP Cookbook ( 657 pages type pdf, 2.7 MB )

Technorati Tags: 











Recent comments
1 year 21 weeks ago
1 year 28 weeks ago