O'Reilly logo

PHP for Teens by Maneesh Sethi

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

Chapter 8. Strings

Strings are a data type, much like integers or floating-point values, except they do not deal with numbers. Instead, they deal with characters and words. An example of a very basic string is a. A more complex string might be Hello, World, while a very complex string might have symbols in it that aren’t even letters. They also can contain numbers. You might want to create a string that looks something like this: My house has 2 stories and 5 bedrooms.. Strings allow you to store numbers as characters inside your strings, but strings with numbers inside them are not the same as integers. Combining two strings gives you a result that is not the same as adding two numbers, so "10"+"14" does not equal 24, but 10+14 will. Be aware ...

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