Chapter

Using Variables

From ComputerScienceOne by Dr Chris Bourke

Concepts

  1. What types of values does PHP support?

    "PHP supports several different types: Booleans, integers, floating point numbers, strings, arrays, and objects. The way that integers are represented may be platform dependent, but are usually 32-bit

  2. How do you assign values to variables in PHP?

    "To use a variable in PHP, you simply need to assign a value to a named variable identifier and the variable is in scope. Variable names always begin with a single dollar sign, $ . The assignment oper

  3. How does PHP handle undefined variables, null values, and constants?

    "If you do not assign a value to a variable, that variable remains undefined or “unset.” Undefined variables are treated as null in PHP. The concept of “null” refers to uninitialized, undefined, empty

Using Variables | ComputerScienceOne | Bifalgorithm | Bifalgorithm