Chapter 1 PHP

Single quotes in PHP denote the lack of interpolation
Double quotes allow interpolation; variables in PHP can be used.

Debugging Techniques

The $_SERVER Variable

What it does and what information is stored

The $_SERVER variable points to server-related information. For example, you can use this variable to find the filename of the script being run using $_SERVER['SCRIPT_FILENAME']

Length of name: 15

Name: Tyler Buchannan

Name Lower: tyler buchannan

Name Upper: TYLER BUCHANNAN

Tyler Buchannan, 16, 08/17/2008

Interpreted HTML


<p>Plain Text</p>

Formatted Number: 3,005

Formatted Float: 1.2857