2. Types and Operators

Overview

By the end of this chapter, you will be able to use the different data types in PHP to store and work with data; create and use arrays; implement the concept of multidimensional arrays; work with operators to evaluate the values of operations; and perform type casting to convert variables from one type to another.

Introduction

In the last chapter, we covered how to work with PHP's templating engine to write information to web pages, how to work with the interactive shell on the command line, and what variables are and their importance.

This chapter will follow on and build on these concepts. We will start by going over PHP's data types, followed by an introduction to arrays, what they are, how to use them, ...

Get The PHP Workshop now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.