O'Reilly logo

Core PHP Programming: Using PHP to Build Dynamic Web Sites by Leon Atkinson

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

Miscellaneous Operators

There are operators that don't fit into any of the previous categories: the concatenation operator, the variable marker, the reference operator, and others. Table 2.9 lists them.

The concatenation operator is similar to the addition operator except that it joins two strings. I find this operator indispensable. When issuing a print, it is convenient to concatenate several strings. I also use the concatenation operator to build database queries. Listing 2.8 is an example of doing this.

When variables were discussed earlier, it was shown that a dollar sign always precedes the name of a variable. This is true whether the variable is global, local, or a function argument. The operator can be taken to mean, "Use the value stored ...

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