O'Reilly logo

PHP and MySQL Recipes: A Problem-Solution Approach, Second Edition by Frank M. Kromann

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

© Frank M. Kromann 2016

Frank M. Kromann, PHP and MySQL Recipes, 10.1007/978-1-4842-0605-8_6

6. Strings

Frank M. Kromann

(1)Trabuco Canyon, California, USA

Strings are one of the basic variable types in PHP. They are typically used to build the output of a PHP script that is returned as a response to a HTTP request.

A string is a series of characters where each character is defined as a single byte with ordinal values form 0 to 255. The single byte limitation makes it impossible to have native Unicode support for strings. The mb_string extension makes it possible to work with Unicode (Multi Byte strings) in PHP, but these are not handled with the native variable type and native string manipulation functions.

Strings in PHP can be up to 2Gb long on ...

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