© Andrew Beak 2017
Andrew BeakPHP 7 Zend Certification Study Guidehttps://doi.org/10.1007/978-1-4842-3246-0_3

3. Strings and Patterns

Andrew Beak
(1)
Grafham, Cambridgeshire, UK
 
PHP strings are a series of bytes and do not contain any information about how those bytes should be translated to characters.
PHP stores the length of the string along with its contents and does not rely on a terminating character to denote the end of the string. This helps to make strings binary safe, as null characters in the string will not cause confusion.
On 32-bit systems a string can be as large as 2 GB. There is no particular limit on how long a string may be on a 64-bit PHP system.

Declaring Strings

In PHP, strings may be declared either as simple type or complex ...

Get PHP 7 Zend Certification Study Guide: Ace the ZCE 2017-PHP Exam now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.