O'Reilly logo

PHP 7 Zend Certification Study Guide: Ace the ZCE 2017-PHP Exam by Andrew Beak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required